Skip to content

Commit

Permalink
unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 15, 2024
1 parent 146e83e commit f352cbf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/pas/plugins/oidc/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 0 additions & 3 deletions src/pas/plugins/oidc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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))):
Expand Down

0 comments on commit f352cbf

Please sign in to comment.