Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 228 for claims0 (0.24 sec)

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

    	// and overwrite them with the claims from JWT.
    	if ok && pCfg.ClaimUserinfo {
    		if accessToken == "" {
    			return errors.New("access_token is mandatory if user_info claim is enabled")
    		}
    		uclaims, err := pCfg.UserInfo(ctx, accessToken, r.transport)
    		if err != nil {
    			return err
    		}
    		for k, v := range uclaims {
    			if _, ok := claims[k]; !ok { // only add to claims not update it.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. cmd/jwt.go

    func authenticateNode(accessKey, secretKey, audience string) (string, error) {
    	claims := xjwt.NewStandardClaims()
    	claims.SetExpiry(UTCNow().Add(defaultInterNodeJWTExpiry))
    	claims.SetAccessKey(accessKey)
    	claims.SetAudience(audience)
    
    	jwt := jwtgo.NewWithClaims(jwtgo.SigningMethodHS512, claims)
    	return jwt.SignedString([]byte(secretKey))
    }
    
    // Check if the request is authenticated.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. internal/jwt/parser_test.go

    			var err error
    
    			// Figure out correct claims type
    			switch claims := data.claims.(type) {
    			case *MapClaims:
    				if data.tokenString == "" {
    					data.tokenString = mapClaimsToken(claims)
    				}
    				err = ParseWithClaims(data.tokenString, &MapClaims{}, data.keyfunc)
    			case *StandardClaims:
    				if data.tokenString == "" {
    					data.tokenString = standardClaimsToken(claims)
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 6K bytes
    - Viewed (0)
  4. security/tools/jwt/samples/gen-jwt.py

                            help="iss claim. Default is `******@****.***`")
        parser.add_argument("-aud", "--aud",
                            help="aud claim. This is comma-separated-list of audiences")
        parser.add_argument("-sub", "--sub",
                            help="sub claim. If not provided, it is set to the same as iss claim.")
        parser.add_argument("-claims", "--claims",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. security/tools/jwt/sa-jwt.py

                            help="iss claim. This should be your service account email.")
        parser.add_argument("-aud", "--aud",
                            help="aud claim. This is comma-separated-list of audiences")
        parser.add_argument("-sub", "--sub",
                            help="sub claim. If not provided, it is set to the same as iss claim.")
        parser.add_argument("-claims", "--claims",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Sep 14 20:15:07 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  6. pkg/serviceaccount/legacy.go

    	}
    	namespace := private.Namespace
    	if len(namespace) == 0 {
    		return nil, errors.New("namespace claim is missing")
    	}
    	secretName := private.SecretName
    	if len(secretName) == 0 {
    		return nil, errors.New("secretName claim is missing")
    	}
    	serviceAccountName := private.ServiceAccountName
    	if len(serviceAccountName) == 0 {
    		return nil, errors.New("serviceAccountName claim is missing")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 08:32:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. security/pkg/util/jwtutil.go

    	if err != nil {
    		return nil, err
    	}
    	dec := json.NewDecoder(bytes.NewBuffer(claimBytes))
    
    	claims := make(map[string]any)
    	if err := dec.Decode(&claims); err != nil {
    		return nil, fmt.Errorf("failed to decode the JWT claims")
    	}
    	return claims, nil
    }
    
    func DecodeJwtPart(seg string) ([]byte, error) {
    	if l := len(seg) % 4; l > 0 {
    		seg += strings.Repeat("=", 4-l)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. cmd/bucket-policy.go

    	// JWT specific values
    	//
    	// Add all string claims
    	for k, v := range claims {
    		vStr, ok := v.(string)
    		if ok {
    			// Trim any LDAP specific prefix
    			args[strings.ToLower(strings.TrimPrefix(k, "ldap"))] = []string{vStr}
    		}
    	}
    
    	// Add groups claim which could be a list. This will ensure that the claim
    	// `jwt:groups` works.
    	if grpsVal, ok := claims["groups"]; ok {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/mod/PATENTS

    transfer and otherwise run, modify and propagate the contents of this
    implementation of Go, where such license applies only to those patent
    claims, both currently owned or controlled by Google and acquired in
    the future, licensable by Google that are necessarily infringed by this
    implementation of Go.  This grant does not include claims that would be
    infringed only as a consequence of further modification of this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 29 20:10:15 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/PATENTS

    transfer and otherwise run, modify and propagate the contents of this
    implementation of Go, where such license applies only to those patent
    claims, both currently owned or controlled by Google and acquired in
    the future, licensable by Google that are necessarily infringed by this
    implementation of Go.  This grant does not include claims that would be
    infringed only as a consequence of further modification of this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 06 18:23:38 UTC 2018
    - 1.3K bytes
    - Viewed (0)
Back to top