Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expires (0.14 sec)

  1. internal/config/identity/openid/jwt.go

    	if resp.StatusCode != http.StatusOK {
    		return errors.New(resp.Status)
    	}
    
    	return r.pubKeys.parseAndAdd(resp.Body)
    }
    
    // ErrTokenExpired - error token expired
    var (
    	ErrTokenExpired = errors.New("token expired")
    )
    
    func updateClaimsExpiry(dsecs string, claims map[string]interface{}) error {
    	expStr := claims["exp"]
    	if expStr == "" {
    		return ErrTokenExpired
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 8.3K bytes
    - Viewed (5)
  2. cmd/jwt.go

    				if u.Credentials.Status == auth.AccountOff {
    					return nil, errAccessKeyDisabled
    				}
    				return nil, errInvalidAccessKeyID
    			}
    			cred := u.Credentials
    			// Expired credentials return error.
    			if cred.IsTemp() && cred.IsExpired() {
    				return nil, errInvalidAccessKeyID
    			}
    			return []byte(cred.SecretKey), nil
    		} // this means claims.AccessKey == rootAccessKey
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top