mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-18 04:47:28 +00:00
R81: reject empty access token on callback+refresh
This commit is contained in:
@@ -1129,6 +1129,7 @@ func TestHandleCallback(t *testing.T) {
|
||||
exchangeCodeForToken: func(code string, redirectURL string, codeVerifier string) (*TokenResponse, error) {
|
||||
return &TokenResponse{
|
||||
IDToken: ts.token,
|
||||
AccessToken: "test-access-token",
|
||||
RefreshToken: "test-refresh-token",
|
||||
}, nil
|
||||
},
|
||||
@@ -1203,6 +1204,7 @@ func TestHandleCallback(t *testing.T) {
|
||||
}
|
||||
return &TokenResponse{
|
||||
IDToken: disallowedToken,
|
||||
AccessToken: "test-access-token",
|
||||
RefreshToken: "test-refresh-token-disallowed",
|
||||
}, nil
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user