Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

claims: add amr for authentication method #230

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Conversation

AlexCuse
Copy link
Contributor

fixes #222

@AlexCuse
Copy link
Contributor Author

AlexCuse commented Nov 28, 2023

This does set AMR on the refresh token as well - did this because the session ID is included in both places.

@@ -52,10 +53,12 @@ func GetOauthReturn(app *app.App, providerName string) http.HandlerFunc {
return
}

amr := []string{fmt.Sprintf("oauth:%s", providerName)}
Copy link
Member

Choose a reason for hiding this comment

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

interesting. i like it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think I will grow to hate it - oauth, {providerName} seemed like a weird way to go since theres no real combination of methods happening.

@AlexCuse AlexCuse merged commit fb5a216 into keratin:main Dec 7, 2023
2 checks passed
@AlexCuse AlexCuse deleted the amr-claim branch December 7, 2023 02:11
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.

claims: add amr claim to tokens to indicate MFA status
2 participants