diff --git a/src/pas/plugins/oidc/plugins.py b/src/pas/plugins/oidc/plugins.py index 42da117..1767631 100644 --- a/src/pas/plugins/oidc/plugins.py +++ b/src/pas/plugins/oidc/plugins.py @@ -165,10 +165,6 @@ class OIDCPlugin(BasePlugin): "https://appleid.apple.com" # nosec bandit: disable hardcoded_password_string ) - def __init__(self, id, title=None): - self._setId(id) - self.title = title - def rememberIdentity(self, userinfo): if not isinstance(userinfo, (OpenIDSchema, dict)): raise AssertionError( diff --git a/src/pas/plugins/oidc/utils.py b/src/pas/plugins/oidc/utils.py index 8a9e20d..07d382a 100644 --- a/src/pas/plugins/oidc/utils.py +++ b/src/pas/plugins/oidc/utils.py @@ -195,7 +195,6 @@ def get_user_info(client, state, args) -> Union[message.OpenIDSchema, dict]: # If it's an AccessTokenResponse the information in the response will be stored in the # client instance with state as the key for future use. user_info = resp.to_dict().get("id_token", {}) - if client.userinfo_endpoint: # https://openid.net/specs/openid-connect-core-1_0.html#UserInfo @@ -214,8 +213,6 @@ def get_user_info(client, state, args) -> Union[message.OpenIDSchema, dict]: exc_info=exc, ) user_info = {} - else: - pass # userinfo in an instance of OpenIDSchema or ErrorResponse # It could also be dict, if there is no userinfo_endpoint if not (user_info and isinstance(user_info, (message.OpenIDSchema, dict))):