Skip to content

Implement OpenID Connect Discovery#24

Closed
FWest98 wants to merge 14 commits intosteverhoades:masterfrom
FWest98:fw/discovery
Closed

Implement OpenID Connect Discovery#24
FWest98 wants to merge 14 commits intosteverhoades:masterfrom
FWest98:fw/discovery

Conversation

@FWest98
Copy link
Copy Markdown

@FWest98 FWest98 commented Aug 19, 2021

This PR implements support for automatic discovery of OpenID Connect configuration, as specified here.

Fixes #22

Details: adds an issuer configuration field, which, when present, will cause the provider to dynamically set all other options based on the data at the <issuer>/.well-known/openid-configuration endpoint. This includes public key configuration.

@steverhoades
Copy link
Copy Markdown
Owner

@FWest98 Thank you for the PR, I apologize for the delay in the review. If it's not too much trouble can you add some documentation to the Readme? Once that is done it looks good to me.

inoric and others added 12 commits June 12, 2022 21:44
The new version of lcobucci/jwt seems convert timestamps to
DateTimeImmutable. All the code currently expects a unix timestamp so
this breaks. Fixed by simply checking for DateTimeInterface and
converting them back to unix timestamps before validation.
Replace the Token interface with Plain because we need to use claims(),
which only exist on Plain anyway. Getting any other token now throws
errors.
Also assert that our token type, AccessToken is returned in
getAccessToken.

This helps with static analysis tools and IDE autocomplete both for us
and users.
@FWest98
Copy link
Copy Markdown
Author

FWest98 commented Aug 14, 2022

Well.. For an entire year I was thinking you asked for unit tests instead of documentation..... But now I decided to add both and finally update the MR!

@rafaelklaessen
Copy link
Copy Markdown

@steverhoades @FWest98 What's the status of this MR? :)

@FWest98
Copy link
Copy Markdown
Author

FWest98 commented Jan 13, 2023

As far as I'm concerned, this is ready to merge, but I guess by now there are merge conflicts. I will try to fix those in the coming days

@FWest98
Copy link
Copy Markdown
Author

FWest98 commented Jan 17, 2023

Please refer to #37

@FWest98 FWest98 closed this Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support OpenID Connect Discovery to pull in endpoint urls and keysets

4 participants