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

Is it possible to pass arbitrary data in? #298

Open
tomkerswill opened this issue Dec 19, 2023 · 1 comment
Open

Is it possible to pass arbitrary data in? #298

tomkerswill opened this issue Dec 19, 2023 · 1 comment

Comments

@tomkerswill
Copy link

Hi

I really like Grant. One use-case I have is that I'd like to pass arbitrary data into the auth URL, and have it available at the end of the process, once the user has authenticated. Is this possible to do? For example, I'd like to pass the ID of the particular login button a user pressed, and have that available in the callback.

Tom

@simov
Copy link
Owner

simov commented Dec 19, 2023

Any parameter that you send as querystring (GET) or url-encoded form body (POST) will be stored in the session under the grant.dynamic key and it will be available for you at the end of the OAuth flow.

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

No branches or pull requests

2 participants