Add -prompt flag

Space separated list of OpenID prompt options (https://developers.google.com/identity/protocols/OpenIDConnect#prompt)
This commit is contained in:
Thomas Vaillant
2018-11-05 16:43:30 +01:00
parent b54871391f
commit c897bc8387
4 changed files with 11 additions and 1 deletions

View File

@ -146,6 +146,7 @@ func TestGetLoginURL(t *testing.T) {
Host: "test.com",
Path: "/auth",
},
Prompt: "consent select_account",
}
// Check url
@ -170,6 +171,7 @@ func TestGetLoginURL(t *testing.T) {
"redirect_uri": []string{"http://example.com/_oauth"},
"response_type": []string{"code"},
"scope": []string{"scopetest"},
"prompt": []string{"consent select_account"},
"state": []string{"nonce:http://example.com/hello"},
}
if !reflect.DeepEqual(qs, expectedQs) {