mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-24 00:02:15 +00:00
fix: return unauthenticated code (#6819)
* fix: return unauthenticated code * remove cfg.yaml --------- Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
parent
0187487f26
commit
a4626f9bdb
@@ -109,9 +109,8 @@ func VerifyTokenAndCreateCtxData(ctx context.Context, token, orgID, orgDomain st
|
||||
if err != nil {
|
||||
var sysTokenErr error
|
||||
sysMemberships, userID, sysTokenErr = t.VerifySystemToken(ctx, tokenWOBearer, orgID)
|
||||
err = errors.Join(err, sysTokenErr)
|
||||
if sysTokenErr != nil || sysMemberships == nil {
|
||||
return CtxData{}, err
|
||||
return CtxData{}, zitadel_errors.ThrowUnauthenticated(errors.Join(err, sysTokenErr), "AUTH-7fs1e", "Errors.Token.Invalid")
|
||||
}
|
||||
}
|
||||
var projectID string
|
||||
|
||||
Reference in New Issue
Block a user