Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@ransombriggs
Copy link
Contributor

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

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
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