simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

Is it possible to pass arbitrary data in? #298

Open tomkerswill opened 8 months ago

tomkerswill commented 8 months ago

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 commented 8 months ago

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.