Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetNewCredentials (0.11 sec)

  1. internal/auth/credentials_test.go

    				t.Fatalf("test %v: got invalid credentials", i+1)
    			}
    		}
    	}
    }
    
    func TestCredentialsEqual(t *testing.T) {
    	cred, err := GetNewCredentials()
    	if err != nil {
    		t.Fatalf("Failed to get a new credential: %v", err)
    	}
    	cred2, err := GetNewCredentials()
    	if err != nil {
    		t.Fatalf("Failed to get a new credential: %v", err)
    	}
    	testCases := []struct {
    		cred           Credentials
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. internal/auth/credentials.go

    	}
    
    	if err := jwt.ParseWithClaims(token, claims, stsTokenCallback); err != nil {
    		return nil, err
    	}
    
    	return claims, nil
    }
    
    // GetNewCredentials generates and returns new credential.
    func GetNewCredentials() (cred Credentials, err error) {
    	return GetNewCredentialsWithMetadata(map[string]interface{}{}, "")
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top