Fix lint error and remove accidental direct dep on ory/x

Fixing some mistakes from previous commit on feature branch.
This commit is contained in:
Ryan Richard
2022-07-21 13:50:33 -07:00
parent c12ffad29e
commit 0495286f97
2 changed files with 3 additions and 5 deletions

View File

@@ -1748,9 +1748,8 @@ func testSupervisorLogin(
require.EqualError(t, err, wantAuthcodeExchangeError)
// The authcode exchange has failed, so can't continue the login flow, making this the end of the test case.
return
} else {
require.NoError(t, err)
}
require.NoError(t, err)
expectedIDTokenClaims := []string{"iss", "exp", "sub", "aud", "auth_time", "iat", "jti", "nonce", "rat", "username"}
if slices.Contains(downstreamScopes, "groups") {
expectedIDTokenClaims = append(expectedIDTokenClaims, "groups")