Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 477 for audiences (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audiences.go

    	return context.WithValue(ctx, audiencesKey, auds)
    }
    
    // AudiencesFrom returns a request's expected audiences stored in the request context.
    func AudiencesFrom(ctx context.Context) (Audiences, bool) {
    	auds, ok := ctx.Value(audiencesKey).(Audiences)
    	return auds, ok
    }
    
    // Has checks if Audiences contains a specific audiences.
    func (a Audiences) Has(taud string) bool {
    	for _, aud := range a {
    		if aud == taud {
    			return true
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 31 21:50:11 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/authentication/v1beta1/types.go

    	// Audiences are audience identifiers chosen by the authenticator that are
    	// compatible with both the TokenReview and token. An identifier is any
    	// identifier in the intersection of the TokenReviewSpec audiences and the
    	// token's audiences. A client of the TokenReview API that sets the
    	// spec.audiences field should validate that a compatible audience identifier
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:25 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audagnostic_test.go

    					auds:         Audiences{"other_api"},
    				},
    				{
    					implicitAuds: Audiences{},
    					auds:         Audiences{"other_api"},
    				},
    				{
    					implicitAuds: Audiences{"api"},
    					auds:         Audiences{},
    				},
    				{
    					implicitAuds: Audiences{"api", "other"},
    					auds:         Audiences{},
    				},
    				{
    					implicitAuds: Audiences{},
    					auds:         Audiences{"api", "other"},
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authentication/authenticator/audagnostic.go

    		return nil, false, err
    	}
    	if len(resp.Audiences) > 0 {
    		// maybe the authenticator was audience aware after all.
    		return nil, false, fmt.Errorf("audience agnostic authenticator wrapped an authenticator that returned audiences: %q", resp.Audiences)
    	}
    	resp.Audiences = auds
    	return resp, true, nil
    }
    
    type audAgnosticRequestAuthenticator struct {
    	implicit Audiences
    	delegate Request
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 31 22:31:49 UTC 2018
    - 2.8K bytes
    - Viewed (0)
  5. pkg/registry/authentication/tokenreview/storage.go

    	tokenReview.Status.Authenticated = ok
    	if err != nil {
    		tokenReview.Status.Error = err.Error()
    	}
    
    	if len(auds) > 0 && resp != nil && len(authenticator.Audiences(auds).Intersect(resp.Audiences)) == 0 {
    		klog.Errorf("error validating audience. want=%q got=%q", auds, resp.Audiences)
    		return nil, badAuthenticatorAuds
    	}
    
    	if resp != nil && resp.User != nil {
    		tokenReview.Status.User = authentication.UserInfo{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:13 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/authentication/v1/generated.proto

      optional UserInfo user = 2;
    
      // Audiences are audience identifiers chosen by the authenticator that are
      // compatible with both the TokenReview and token. An identifier is any
      // identifier in the intersection of the TokenReviewSpec audiences and the
      // token's audiences. A client of the TokenReview API that sets the
      // spec.audiences field should validate that a compatible audience identifier
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/authentication/v1/types.go

    	// Audiences are audience identifiers chosen by the authenticator that are
    	// compatible with both the TokenReview and token. An identifier is any
    	// identifier in the intersection of the TokenReviewSpec audiences and the
    	// token's audiences. A client of the TokenReview API that sets the
    	// spec.audiences field should validate that a compatible audience identifier
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. pkg/apis/authentication/types.go

    	Token string `datapolicy:"token"`
    	// Audiences is a list of the identifiers that the resource server presented
    	// with the token identifies as. Audience-aware token authenticators will
    	// verify that the token was intended for at least one of the audiences in
    	// this list. If no audiences are provided, the audience will default to the
    	// audience of the Kubernetes apiserver.
    	Audiences []string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:33:37 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/authentication/v1beta1/types_swagger_doc_generated.go

    	"audiences":     "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 23:42:33 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/authentication/v1/types_swagger_doc_generated.go

    	"audiences":         "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 12:50:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top