-
Notifications
You must be signed in to change notification settings - Fork 367
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
feat:add configurable state #336
base: master
Are you sure you want to change the base?
Conversation
901e591
to
e084a1a
Compare
Can you please explain under which circumstance this is of interest? Thx |
I want to know which requests belong together. Right now the state is generated on the fly, so it is not possible to save it before authenticating and matching it after. Also, with this pull request it is possible to pass additional data with state (jwt for example). |
I am not very comfortable with the state being a fixed string. Wouldn't it be better to set a custom user function that would be called to generate the state instead? |
44a4194
to
06597ab
Compare
@azmeuk yes, custom function is more flexible. I changed the code. |
06597ab
to
b550b42
Compare
This would be beneficial to a project I am working on. We need a reasonable way to identify a user before and after authentication without the use of additional session data. |
I wonder if that callback function should take parameters, such as |
@azmeuk Looking at the codebase... the primary class is architected as a singleton, thus you can receive the I suppose maybe this would have use if you were to create a number of different "clients" and then utilize the same callback method for all. In that case, I would imagine the easiest (and most versatile) solution would be to simply pass the entire client class as a single parameter. All (public) interfaces would be accessible. I am not sure if this is favored from a stylistic perspective. |
Hi everyone, is there anything new about this pr? It would also be beneficial for my use case. |
I am more in favor of overloading method implementations by sub classing - all these callables are highly type-unsafe. |
List of common tasks a pull request require complete