- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for tokenRevokeType (1.23 sec)
-
cmd/sts-handlers.go
return } claims[expClaim] = UTCNow().Add(duration).Unix() claims[parentClaim] = user.AccessKey tokenRevokeType := r.Form.Get(stsRevokeTokenType) if tokenRevokeType != "" { claims[tokenRevokeTypeClaim] = tokenRevokeType } // Validate that user.AccessKey's policies can be retrieved - it may not // be in case the user is disabled.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 36.6K bytes - Viewed (0) -
cmd/admin-handlers-users.go
if isTokenSelfRevoke && tokenRevokeType == "" && !fullRevoke { if cred.IsTemp() { tokenRevokeType, _ = cred.Claims[tokenRevokeTypeClaim].(string) } if tokenRevokeType == "" { writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNoTokenRevokeType), r.URL) return } } err := globalIAMSys.RevokeTokens(ctx, user, tokenRevokeType) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 90.6K bytes - Viewed (0) -
cmd/iam.go
// RevokeTokens - revokes all STS tokens, or those of specified type, for a user // If `tokenRevokeType` is empty, all tokens are revoked. func (sys *IAMSys) RevokeTokens(ctx context.Context, accessKey, tokenRevokeType string) error { if !sys.Initialized() { return errServerNotInitialized } return sys.store.RevokeTokens(ctx, accessKey, tokenRevokeType) } // DeleteUser - delete user (only for long-term users not STS users).
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 75.3K bytes - Viewed (0) -
cmd/iam-store.go
continue } if tokenRevokeType != "" { claims, err := getClaimsFromTokenWithSecret(ui.Credentials.SessionToken, secret) if err != nil { continue // skip if token is invalid } // skip if token type is given and does not match if v, _ := claims.Lookup(tokenRevokeTypeClaim); v != tokenRevokeType { continue } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 86.7K bytes - Viewed (0) -
cmd/sts-handlers_test.go
assumeRole := cr.STSAssumeRole{ Client: s.TestSuiteCommon.client, STSEndpoint: s.endPoint, Options: cr.STSAssumeRoleOptions{ AccessKey: accessKey, SecretKey: secretKey, TokenRevokeType: tc.tokenType, }, } value, err := assumeRole.Retrieve() if err != nil { c.Fatalf("err calling assumeRole: %v", err) } minioClient, err := minio.New(s.endpoint, &minio.Options{
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 100.2K bytes - Viewed (1)