-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow passing the value of "approval_prompt" as a flag or option. #131
Conversation
Hi @ebardsley Thanks for the contribution. Can you share what provider you were adding this for? I think the feature could be useful but i need to think about implementation as i imagine different providers handle approval prompts differently. |
I'm using this w/ Google as the provider. Previously, Google Accounts would On Mon, Jul 27, 2015 at 9:25 AM, Jehiah Czebotar notifications@github.com
|
@ebardsley Thanks that context is helpful. What version of oauth2_proxy were you using? Some recent changes added the ability to transparently refresh sessions (via |
I dug into timing a bit, and found that when I first wrote up these changes That said, I still occasionally hit the protected site on new devices, or FYI, the other change, which I was planning to send later, redirects On Mon, Jul 27, 2015 at 5:36 PM, Jehiah Czebotar notifications@github.com
|
That's a good point that even with cookie refresh, this accelerates the auth process on a new device. fyi: since oauth2_proxy supports custom templates I believe you should be able to accomplish the auto-initiate-oauth flow by using a template that has a meta refresh tag instead of waiting for users to click the sign-in button. You shouldn't need any code changes for that. |
By setting this to "force", certain providers, like Google, will interject an additional prompt on every new session. With other values, like "auto", this prompt is not forced upon the user.
Acknowledged regarding the templates, but that's not part of this pull On Tue, Jul 28, 2015 at 5:02 AM, Jehiah Czebotar notifications@github.com
|
@jehiah Is there anything else that you'd like for this pull request? |
Also note that the default behavior ("force") with this change remains unchanged; it simply makes it possible to change approval_prompt if desired. |
Allow passing the value of "approval_prompt" as a flag or option.
thanks @ebardsley! sorry for the delay in catching up on this PR |
No description provided.