Fetch the ID Token from the Authorization Server#1
Merged
radiantshaw merged 1 commit intodevelopfrom Jan 18, 2026
Merged
Conversation
Added the ability to fetch the ID Token via the Authorization Code Grant. The class responsible for doing the fetching is `::Vauth::AuthCodeGrant`. It returns a `::Vauth::IdentityToken` via its `#identity_token` method. `::Vauth::AuthCodeGrant` currently only has the ability to deal with the ID Token, as I'm only focusing on Open ID Connect for now. In the future, it should also have a method to fetch the Access Token. The `::Vauth::Client` struct holds the information that allows the grant object to make the request. Currently, I'm not sure if there's a better way to encapsulate the information handled via the `::Vauth::Client` class, but its refactor is on my mind if I find a better way. Other notable changes are related to RuboCop. I didn't like the defaults, so I changed it to my liking. The end goal is to collect all these and extract a gem out of it. Installed the `debug` gem as well for obvious reasons. It also created a `Gemfile.lock` that wasn't present earlier for some reason. Installed the `jwt` gem as well to decode the ID Token received from the OAuth2 Provider. Generated the binstub for Rake to make it easier to run the tests as well as RuboCop. Also had to remove a spec that was failing. It was just an example spec.
2f8dd7e to
214bf12
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
::Vauth::AuthCodeGrant- gives you an object that can make the request to the Authorization Server and fetch the ID Token::Vauth::IdentityToken- responsible for decoding the JWT and proving you with the issuer and subject information::Vauth::Client- holds the information needed to make the requestAdded some RuboCop rules. Removed an unnecessary failing spec. Added the binstub for Rake. Installed some necessary gems.