Documentation ¶
Index ¶
Constants ¶
View Source
const ( OAuthWantChallengesAnnotationPrefix = "serviceaccounts.openshift.io/oauth-want-challenges" // Prefix used for statically specifying redirect URIs for a service account via annotations // The value can be partially supplied with the dynamic prefix to override the resource's defaults OAuthRedirectModelAnnotationURIPrefix = "serviceaccounts.openshift.io/oauth-redirecturi." // Prefix used for dynamically specifying redirect URIs using resources for a service account via annotations OAuthRedirectModelAnnotationReferencePrefix = "serviceaccounts.openshift.io/oauth-redirectreference." )
Variables ¶
This section is empty.
Functions ¶
func IsServiceAccountToken ¶
func IsServiceAccountToken(secret *corev1.Secret, sa *corev1.ServiceAccount) bool
IsServiceAccountToken returns true if the secret is a valid api token for the service account
Types ¶
type OAuthClientGetter ¶
type OAuthClientGetter interface {
Get(name string, options metav1.GetOptions) (*oauthapi.OAuthClient, error)
}
OAuthClientGetter exposes a way to get a specific client. This is useful for other registries to get scope limitations on particular clients. This interface will make its easier to write a future cache on it
func NewServiceAccountOAuthClientGetter ¶
func NewServiceAccountOAuthClientGetter( saClient kcoreclient.ServiceAccountsGetter, secretClient kcoreclient.SecretsGetter, eventClient kcoreclient.EventInterface, routeClient routeclient.RoutesGetter, delegate OAuthClientGetter, grantMethod oauthapi.GrantHandlerType, ) OAuthClientGetter
Click to show internal directories.
Click to hide internal directories.