Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkClaimsFromToken (0.22 sec)

  1. cmd/auth-handler.go

    	return getClaimsFromTokenWithSecret(token, globalActiveCred.SecretKey)
    }
    
    // Fetch claims in the security token returned by the client and validate the token.
    func checkClaimsFromToken(r *http.Request, cred auth.Credentials) (map[string]interface{}, APIErrorCode) {
    	token := getSessionToken(r)
    	if token != "" && cred.AccessKey == "" {
    		// x-amz-security-token is not allowed for anonymous access.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
Back to top