mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-09 23:27:43 +02:00
authenticate: make callback path configurable (#493)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
1901cb5ca0
commit
5716113c2a
6 changed files with 57 additions and 26 deletions
|
@ -43,6 +43,8 @@ func TestOptions_Validate(t *testing.T) {
|
|||
badSharedKey.SharedKey = ""
|
||||
badAuthenticateURL := newTestOptions(t)
|
||||
badAuthenticateURL.AuthenticateURL = nil
|
||||
badCallbackPath := newTestOptions(t)
|
||||
badCallbackPath.AuthenticateCallbackPath = ""
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
|
@ -60,6 +62,7 @@ func TestOptions_Validate(t *testing.T) {
|
|||
{"no client id", emptyClientID, true},
|
||||
{"no client secret", emptyClientSecret, true},
|
||||
{"empty authenticate url", badAuthenticateURL, true},
|
||||
{"empty callback path", badCallbackPath, true},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue