Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _claims_sources (0.2 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    	src, ok := claimToSource[r.claim]
    	if !ok {
    		// No distributed claim present.
    		return nil
    	}
    	ep, ok := sources[src]
    	if !ok {
    		return fmt.Errorf("id token _claim_names contained a source %s missing in _claims_sources", src)
    	}
    	if ep.URL == "" {
    		// This is maybe an aggregated claim (ep.JWT != "").
    		return nil
    	}
    	return r.resolve(ctx, ep, c)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    			},
    			claims: fmt.Sprintf(`{
    				"iss": "{{.URL}}",
    				"aud": "my-client",
    				"username": "jane",
    				"_claim_names": {
    						"groups": "src1"
    				},
    				"_claim_sources": {
    						"src1": {
    								"endpoint": "{{.URL}}/groups",
    								"access_token": "groups_token"
    						}
    				},
    				"exp": %d
    			}`, valid.Unix()),
    			claimToResponseMap: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
Back to top