Allow users to config AuthCodeEntropy
Closed this issue · 4 comments
nerocrux commented
Is your feature request related to a problem? Please describe.
- I understand 32 bytes entropy may be secure enough, but in some cases I may still want to change the entropy (32 bytes -> 64 or 128 bytes) of Token generated using HMAC strategy, which is currently not possible.
Describe the solution you'd like
- Make
AuthCodeEntropy
configurable for NewOAuth2HMACStrategy()
Describe alternatives you've considered
- None.
Additional context
- Maybe also should give this value a upper limit, like 256 (int).
- If this sounds OK, I'll create a pull request. Thanks for reviewing.
aeneasr commented
Yup sounds good
nerocrux commented
Thank you! I will implement this.
nerocrux commented
Implemented so I'm gonna close this issue.
Thanks!