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

Add settable nonce #50

Merged
merged 3 commits into from Nov 1, 2021
Merged

Add settable nonce #50

merged 3 commits into from Nov 1, 2021

Conversation

onevcat
Copy link
Member

@onevcat onevcat commented Oct 27, 2021

This should allow user to set a custom nonce to enhance security when using ID Token. See #49

Copy link
Member

@plateaukao plateaukao left a comment

Choose a reason for hiding this comment

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

LGTM with one minor fix needed.

@@ -69,6 +70,7 @@ class LineSdkWrapper {
.scopes(Scope.convertToScopeList(scopes))
.apply {
botPrompt(LineAuthenticationParams.BotPrompt.valueOf(botPromptString))
idTokenNonce.let { nonce(it) }
Copy link
Member

Choose a reason for hiding this comment

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

should be idTokenNonce?.let { nonce(it) }

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh. It is confusing! I will fix it. Thanks.

@onevcat onevcat merged commit 33ebc35 into master Nov 1, 2021
@onevcat onevcat deleted the feature/settable-nonce branch November 1, 2021 01:45
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.

None yet

2 participants