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

Fix default token generation #56

Merged
merged 3 commits into from
Aug 8, 2024

Conversation

ransombriggs
Copy link
Contributor

Fixes #32 so that a random hex token is generated by default.

@@ -111,7 +111,7 @@ def extended(base)

option(
:token_payload,
default: proc { { token: SecureRandom.method(:hex) } }
default: proc { { token: SecureRandom.hex } }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Style/TrailingCommaInArguments: Put a comma after the last parameter of a multiline method call.

Copy link
Member

@nbulaj nbulaj left a comment

Choose a reason for hiding this comment

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

Interesting, how it works before this change 🤔 I'm not very familiar with the openid-connect plugin. But the changes look reasonable to me 👍

@nbulaj
Copy link
Member

nbulaj commented Aug 7, 2024

@ransombriggs can you please also add a changelog entry? 🙏

@ransombriggs
Copy link
Contributor Author

@nbulaj I updated the changelog in d5b120a

@nbulaj nbulaj merged commit 57cbfb6 into doorkeeper-gem:master Aug 8, 2024
2 of 5 checks passed
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.

Default token_payload doesn't return a random hex value
3 participants