diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-12-07 15:12:37 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-12-08 19:25:42 +0100 |
| commit | 790afc80bff8d76555448773e021386d8e6d1586 (patch) | |
| tree | 9d8ace9ab69fcd92de08e43192e5e1e77d7acfad /internal/oauth/oauth_test.go | |
| parent | 7f2fed4ead6ebdcd3c05d1d3f76b92abd6c3c917 (diff) | |
OAuth: Remove ISS check
Too many issues with upstream servers. Needs disco v3 changes
Diffstat (limited to 'internal/oauth/oauth_test.go')
| -rw-r--r-- | internal/oauth/oauth_test.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/oauth/oauth_test.go b/internal/oauth/oauth_test.go index 8f5f04c..d46df4a 100644 --- a/internal/oauth/oauth_test.go +++ b/internal/oauth/oauth_test.go @@ -159,11 +159,10 @@ func Test_secretJSON(t *testing.T) { } func Test_AuthURL(t *testing.T) { - iss := "local" auth := "https://127.0.0.1/auth" token := "https://127.0.0.1/token" id := "client_id" - o := OAuth{ISS: iss, BaseAuthorizationURL: auth, TokenURL: token} + o := OAuth{BaseAuthorizationURL: auth, TokenURL: token} s, err := o.AuthURL(id, func(s string) string { // We do nothing here are this function is for skipping WAYF return s @@ -176,9 +175,6 @@ func Test_AuthURL(t *testing.T) { if o.session.ClientID != id { t.Fatalf("OAuth ClientID not equal, want: %v, got: %v", o.session.ClientID, id) } - if o.session.ISS != iss { - t.Fatalf("OAuth ISS not equal, want: %v, got: %v", o.session.ISS, iss) - } if o.session.State == "" { t.Fatal("No OAuth session state paremeter found") } |
