Skip to content

Comments

Update OIDCConfig with scope information #13973

Merged
abhishekagarwal87 merged 5 commits intoapache:masterfrom
findingrish:update-oidcconfig
Mar 28, 2023
Merged

Update OIDCConfig with scope information #13973
abhishekagarwal87 merged 5 commits intoapache:masterfrom
findingrish:update-oidcconfig

Conversation

@findingrish
Copy link
Contributor

Updates OIDCConfig class with scope information
Set scope for OIDCConfiguration object

This PR has:

  • been self-reviewed.

this.clientID = Preconditions.checkNotNull(clientID, "null clientID");
this.clientSecret = Preconditions.checkNotNull(clientSecret, "null clientSecret");
this.discoveryURI = Preconditions.checkNotNull(discoveryURI, "null discoveryURI");
this.scope = Preconditions.checkNotNull(scope, "null scope");
Copy link
Contributor

Choose a reason for hiding this comment

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

null scope should be allowed or otherwise existing installations will break.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for pointing out, updated.

@abhishekagarwal87
Copy link
Contributor

you may need to update the docs as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

default scope is "openid profile email" from what I can tell looking in the lib.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the feedback, I will update the docs.

Where did you find the default value?

Copy link
Contributor

Choose a reason for hiding this comment

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

@abhishekagarwal87 abhishekagarwal87 merged commit e8e8082 into apache:master Mar 28, 2023
@clintropolis clintropolis added this to the 26.0 milestone Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants