Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for audToCheck (0.12 sec)

  1. security/pkg/server/ca/authenticate/oidc_test.go

    		name        string
    		expectRet   bool
    		audToCheck  []string
    		audExpected []string
    	}{
    		{
    			name:        "audience is in the expected set",
    			expectRet:   true,
    			audToCheck:  []string{"aud1"},
    			audExpected: []string{"aud1", "aud2"},
    		},
    		{
    			name:        "audience is NOT in the expected set",
    			expectRet:   false,
    			audToCheck:  []string{"aud3"},
    			audExpected: []string{"aud1", "aud2"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. security/pkg/server/ca/authenticate/oidc.go

    	}, nil
    }
    
    // checkAudience() returns true if the audiences to check are in
    // the expected audiences. Otherwise, return false.
    func checkAudience(audToCheck []string, audExpected []string) bool {
    	for _, a := range audToCheck {
    		for _, b := range audExpected {
    			if a == b {
    				return true
    			}
    		}
    	}
    	return false
    }
    
    type JwtPayload struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top