Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for JWTSignWithAccessKey (0.09 sec)

  1. internal/auth/credentials.go

    		return cred, err
    	}
    	cred.Expiration = time.Unix(expiry, 0).UTC()
    
    	cred.SessionToken, err = JWTSignWithAccessKey(cred.AccessKey, m, tokenSecret)
    	if err != nil {
    		return cred, err
    	}
    
    	return cred, nil
    }
    
    // JWTSignWithAccessKey - generates a session token.
    func JWTSignWithAccessKey(accessKey string, m map[string]interface{}, tokenSecret string) (string, error) {
    	m["accessKey"] = accessKey
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    			m.Set(policy.SessionPolicyName, base64.StdEncoding.EncodeToString(policyBuf))
    			m.Set(iamPolicyClaimNameSA(), embeddedPolicyType)
    		}
    	}
    
    	cr.SessionToken, err = auth.JWTSignWithAccessKey(accessKey, m.Map(), cr.SecretKey)
    	if err != nil {
    		return updatedAt, err
    	}
    
    	u := newUserIdentity(cr)
    	if err := store.saveUserIdentity(ctx, u.Credentials.AccessKey, svcUser, u); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
Back to top