Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for sessionToken (0.2 sec)

  1. cmd/sts-handlers_test.go

    	}
    
    	// Check that the LDAP sts cred is actually working.
    	minioClient, err := minio.New(s.endpoint, &minio.Options{
    		Creds:     cr.NewStaticV4(value.AccessKeyID, value.SecretAccessKey, value.SessionToken),
    		Secure:    s.secure,
    		Transport: s.TestSuiteCommon.client.Transport,
    	})
    	if err != nil {
    		c.Fatalf("Error initializing client: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  2. docs/sts/assume-role.go

    	}
    
    	if displayCreds {
    		fmt.Println("Only displaying credentials:")
    		fmt.Println("AccessKeyID:", v.AccessKeyID)
    		fmt.Println("SecretAccessKey:", v.SecretAccessKey)
    		fmt.Println("SessionToken:", v.SessionToken)
    		return
    	}
    
    	// Use generated credentials to authenticate with MinIO server
    	minioClient, err := minio.New(stsEndpointURL.Host, opts)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  3. cmd/iam-store.go

    		// non-empty session tokens.
    		if !(cred.IsServiceAccount() || cred.IsTemp()) ||
    			cred.SessionToken == "" {
    			continue
    		}
    
    		var (
    			err    error
    			claims map[string]interface{} = cred.Claims
    		)
    
    		if cred.IsServiceAccount() {
    			claims, err = getClaimsFromTokenWithSecret(cred.SessionToken, cred.SecretKey)
    		} else if cred.IsTemp() {
    			var secretKey string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  4. cmd/iam.go

    			var (
    				jwtClaims *jwt.MapClaims
    				err       error
    			)
    
    			if cred.SessionToken == "" {
    				continue
    			}
    
    			if cred.IsServiceAccount() {
    				jwtClaims, err = auth.ExtractClaims(cred.SessionToken, cred.SecretKey)
    				if err != nil {
    					jwtClaims, err = auth.ExtractClaims(cred.SessionToken, globalActiveCred.SecretKey)
    				}
    			} else {
    				var secretKey string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. docs/sts/web-identity.md

        <Credentials>
          <AccessKeyId>Y4RJU1RNFGK48LGO9I2S</AccessKeyId>
          <SecretAccessKey>sYLRKS1Z7hSjluf6gEbb9066hnx315wHTiACPAjg</SecretAccessKey>
          <Expiration>2019-08-08T20:26:12Z</Expiration>
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  6. cmd/auth-handler.go

    		// x-amz-security-token should not present for static credentials.
    		return nil, ErrInvalidToken
    	}
    
    	if !cred.IsServiceAccount() && cred.IsTemp() && subtle.ConstantTimeCompare([]byte(token), []byte(cred.SessionToken)) != 1 {
    		// validate token for temporary credentials only.
    		return nil, ErrInvalidToken
    	}
    
    	// Expired credentials must return error right away.
    	if cred.IsTemp() && cred.IsExpired() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  7. cmd/iam-etcd-store.go

    		deleteKeyEtcd(ctx, ies.client, getMappedPolicyPath(user, userType, false))
    		return nil
    	}
    	if u.Credentials.AccessKey == "" {
    		u.Credentials.AccessKey = user
    	}
    	if u.Credentials.SessionToken != "" {
    		jwtClaims, err := extractJWTClaims(u)
    		if err != nil {
    			if u.Credentials.IsTemp() {
    				// We should delete such that the client can re-request
    				// for the expiring credentials.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  8. internal/auth/credentials.go

    	SecretKey    string                 `xml:"SecretAccessKey" json:"secretKey,omitempty" yaml:"secretKey"`
    	SessionToken string                 `xml:"SessionToken" json:"sessionToken,omitempty" yaml:"sessionToken"`
    	Expiration   time.Time              `xml:"Expiration" json:"expiration,omitempty" yaml:"-"`
    	Status       string                 `xml:"-" json:"status,omitempty"`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  9. cmd/sts-handlers.go

    			Type: madmin.SRIAMItemSTSAcc,
    			STSCredential: &madmin.SRSTSCredential{
    				AccessKey:    cred.AccessKey,
    				SecretKey:    cred.SecretKey,
    				SessionToken: cred.SessionToken,
    				ParentUser:   cred.ParentUser,
    			},
    			UpdatedAt: updatedAt,
    		}))
    	}
    
    	assumeRoleResponse := &AssumeRoleResponse{
    		Result: AssumeRoleResult{
    			Credentials: cred,
    		},
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  10. cmd/site-replication.go

    	}
    
    	cred := auth.Credentials{
    		AccessKey:    stsCred.AccessKey,
    		SecretKey:    stsCred.SecretKey,
    		Expiration:   time.Unix(expiry, 0).UTC(),
    		SessionToken: stsCred.SessionToken,
    		ParentUser:   stsCred.ParentUser,
    		Status:       auth.AccountOn,
    	}
    
    	// Extract the username and lookup DN and groups in LDAP.
    	ldapUser, isLDAPSTS := claims.Lookup(ldapUserN)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
Back to top