Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Conversation

rohe
Copy link
Collaborator

@rohe rohe commented May 23, 2021

As a follow up on the above:

  • Added OAuth2ClaimsInterface
  • Added ASConfiguration
  • Changed name of tests to make clear if they where oauth2 or oidc based.
  • Made all OAuth2/OIDC based tests use ASConfiguration/OPConfiguration.

Added OAuth2ClaimsInterface
Added ASConfiguration
Changed name of tests to make clear if they where oauth2 or oidc based.
Made all OAuth2/OIDC based tests use ASConfiguration/OPConfiguration.
@rohe rohe requested review from nsklikas and peppelinux May 23, 2021 19:39
@peppelinux
Copy link
Member

it was 2018-2019 when I had talked you to divide OAuth2 profile from OIDC one. You did it finally, great!

Copy link
Member

@peppelinux peppelinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a single commit we have changes of a different nature. I would have definitely split the code formatting style commit versus adding the additional functionality. It is difficult to review changes to 74 files in a single commit.

Anyway the only change I feel like asking you is to avoid replicating the OPConfiguration code in ASConfiguration as a copy / paste. The parts they have in common must be inherited.

Starting from OAuth2 as a basis we could do to inherit ASConfiguration in OPConfiguration and cut the bull's-head!

keys = _context.keyjar.get(
"sig", "oct", ca_jwt["iss"], ca_jwt.jws_header.get("kid")
)
keys = _context.keyjar.get("sig", "oct", ca_jwt["iss"], ca_jwt.jws_header.get("kid"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering why you brought all the pep8 modifications back to their original state but if you like it more so for me it's ok and totally relative.

Right it occurs to me that this revision will be more challenging;)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I shouldn't have run black on it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not without another commit in between 😜

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah!

self.session_key = None
self.template_dir = None
self.token_handler_args = {}
self.userinfo = None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and these are OP's

    self.add_on = None
    self.authz = None
    self.authentication = None
    self.base_url = ""
    self.capabilities = None
    self.cookie_handler = None
    self.endpoint = {}
    self.httpc_params = {}
    self.id_token = None
    self.issuer = ""
    self.keys = None
    self.login_hint2acrs = {}
    self.login_hint_lookup = None
    self.session_key = None
    self.sub_func = {}
    self.template_dir = None
    self.token_handler_args = {}
    self.userinfo = None
    self.password = None
    self.salt = None

They are replicated from OPconfiguration, in a way that if we should add a argument we then need to put in OPConf and at the same time in ASConf. I think that it would be better to have a BaseClass to inherit and take all these attribute from it instead of repeat them

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants