chore: bump authlib/types to v0.0.0-20251119142549-be091cf2f4d4 (#114177)
* chore: bump authlib/types to v0.0.0-20251119142549-be091cf2f4d4 Signed-off-by: Maicon Costa <maiconscosta@gmail.com> * Update Go Workspace Signed-off-by: Maicon Costa <maiconscosta@gmail.com> * Stop supporting deprecated namespace format in TestExtendedJWT_Authenticate Signed-off-by: Maicon Costa <maiconscosta@gmail.com> * Update go mod Signed-off-by: Maicon Costa <maiconscosta@gmail.com> --------- Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
This commit is contained in:
@@ -373,23 +373,10 @@ func TestExtendedJWT_Authenticate(t *testing.T) {
|
||||
ExpectIssuer: "http://localhost:3000",
|
||||
},
|
||||
},
|
||||
want: &authn.Identity{
|
||||
ID: "this-uid",
|
||||
UID: "this-uid",
|
||||
Name: "this-uid",
|
||||
Type: claims.TypeAccessPolicy,
|
||||
OrgID: 1,
|
||||
AccessTokenClaims: &validAccessTokenClaimsWithDeprecatedStackClaimSet,
|
||||
Namespace: "stack-1234",
|
||||
AuthenticatedBy: "extendedjwt",
|
||||
AuthID: "access-policy:this-uid",
|
||||
ClientParams: authn.ClientParams{
|
||||
SyncPermissions: true,
|
||||
},
|
||||
},
|
||||
wantErr: errExtJWTDisallowedNamespaceClaim,
|
||||
},
|
||||
{
|
||||
name: "should authenticate as user using specific deprecated namespace claim in access and id tokens",
|
||||
name: "should NOT authenticate as user using specific deprecated namespace claim in access and id tokens",
|
||||
accessToken: &validAccessTokenClaimsWithDeprecatedStackClaimSet,
|
||||
idToken: &validIDTokenClaimsWithDeprecatedStackClaimSet,
|
||||
orgID: 1,
|
||||
@@ -401,20 +388,7 @@ func TestExtendedJWT_Authenticate(t *testing.T) {
|
||||
ExpectIssuer: "http://localhost:3000",
|
||||
},
|
||||
},
|
||||
want: &authn.Identity{
|
||||
ID: "2",
|
||||
Type: claims.TypeUser,
|
||||
OrgID: 1,
|
||||
AccessTokenClaims: &validAccessTokenClaimsWithDeprecatedStackClaimSet,
|
||||
IDTokenClaims: &validIDTokenClaimsWithDeprecatedStackClaimSet,
|
||||
Namespace: "stack-1234",
|
||||
AuthenticatedBy: "extendedjwt",
|
||||
AuthID: "access-policy:this-uid",
|
||||
ClientParams: authn.ClientParams{
|
||||
SyncPermissions: true,
|
||||
FetchSyncedUser: true,
|
||||
},
|
||||
},
|
||||
wantErr: errExtJWTDisallowedNamespaceClaim,
|
||||
},
|
||||
{
|
||||
name: "should authenticate as user using wildcard namespace for access token, setting allowed namespace to specific",
|
||||
|
||||
Reference in New Issue
Block a user