Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 5. OAuthClient [oauth.openshift.io/v1]
- Description
OAuthClient describes an OAuth client
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
- Type
-
object
5.1. Specification
Property | Type | Description |
---|---|---|
|
| AccessTokenInactivityTimeoutSeconds overrides the default token inactivity timeout for tokens granted to this client. The value represents the maximum amount of time that can occur between consecutive uses of the token. Tokens become invalid if they are not used within this temporal window. The user will need to acquire a new token to regain access once a token times out. This value needs to be set only if the default set in configuration is not appropriate for this client. Valid values are: - 0: Tokens for this client never time out - X: Tokens time out if there is no activity for X seconds The current minimum allowed value for X is 300 (5 minutes) WARNING: existing tokens' timeout will not be affected (lowered) by changing this value |
|
| AccessTokenMaxAgeSeconds overrides the default access token max age for tokens granted to this client. 0 means no expiration. |
|
| AdditionalSecrets holds other secrets that may be used to identify the client. This is useful for rotation and for service account token validation |
|
| APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
|
| GrantMethod is a required field which determines how to handle grants for this client. Valid grant handling methods are: - auto: always approves grant requests, useful for trusted clients - prompt: prompts the end user for approval of grant requests, useful for third-party clients |
|
| Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| metadata is the standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | |
|
| RedirectURIs is the valid redirection URIs associated with a client |
|
| RespondWithChallenges indicates whether the client wants authentication needed responses made in the form of challenges instead of redirects |
|
| ScopeRestrictions describes which scopes this client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied. |
|
| ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil. |
|
| Secret is the unique secret associated with a client |
5.1.1. .scopeRestrictions
- Description
- ScopeRestrictions describes which scopes this client can request. Each requested scope is checked against each restriction. If any restriction matches, then the scope is allowed. If no restriction matches, then the scope is denied.
- Type
-
array
5.1.2. .scopeRestrictions[]
- Description
- ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.
- Type
-
object
Property | Type | Description |
---|---|---|
|
| ClusterRoleScopeRestriction describes restrictions on cluster role scopes |
|
| ExactValues means the scope has to match a particular set of strings exactly |
5.1.3. .scopeRestrictions[].clusterRole
- Description
- ClusterRoleScopeRestriction describes restrictions on cluster role scopes
- Type
-
object
- Required
-
roleNames
-
namespaces
-
allowEscalation
-
Property | Type | Description |
---|---|---|
|
| AllowEscalation indicates whether you can request roles and their escalating resources |
|
| Namespaces is the list of namespaces that can be referenced. * means any of them (including *) |
|
| RoleNames is the list of cluster roles that can referenced. * means anything |
5.2. API endpoints
The following API endpoints are available:
/apis/oauth.openshift.io/v1/oauthclients
-
DELETE
: delete collection of OAuthClient -
GET
: list or watch objects of kind OAuthClient -
POST
: create an OAuthClient
-
/apis/oauth.openshift.io/v1/watch/oauthclients
-
GET
: watch individual changes to a list of OAuthClient. deprecated: use the 'watch' parameter with a list operation instead.
-
/apis/oauth.openshift.io/v1/oauthclients/{name}
-
DELETE
: delete an OAuthClient -
GET
: read the specified OAuthClient -
PATCH
: partially update the specified OAuthClient -
PUT
: replace the specified OAuthClient
-
/apis/oauth.openshift.io/v1/watch/oauthclients/{name}
-
GET
: watch changes to an object of kind OAuthClient. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
-
5.2.1. /apis/oauth.openshift.io/v1/oauthclients
- HTTP method
-
DELETE
- Description
- delete collection of OAuthClient
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
GET
- Description
- list or watch objects of kind OAuthClient
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
POST
- Description
- create an OAuthClient
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Parameter | Type | Description |
---|---|---|
|
|
HTTP code | Reponse body |
---|---|
200 - OK |
|
201 - Created |
|
202 - Accepted |
|
401 - Unauthorized | Empty |
5.2.2. /apis/oauth.openshift.io/v1/watch/oauthclients
- HTTP method
-
GET
- Description
- watch individual changes to a list of OAuthClient. deprecated: use the 'watch' parameter with a list operation instead.
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
5.2.3. /apis/oauth.openshift.io/v1/oauthclients/{name}
Parameter | Type | Description |
---|---|---|
|
| name of the OAuthClient |
- HTTP method
-
DELETE
- Description
- delete an OAuthClient
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
HTTP code | Reponse body |
---|---|
200 - OK |
|
202 - Accepted |
|
401 - Unauthorized | Empty |
- HTTP method
-
GET
- Description
- read the specified OAuthClient
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |
- HTTP method
-
PATCH
- Description
- partially update the specified OAuthClient
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
HTTP code | Reponse body |
---|---|
200 - OK |
|
201 - Created |
|
401 - Unauthorized | Empty |
- HTTP method
-
PUT
- Description
- replace the specified OAuthClient
Parameter | Type | Description |
---|---|---|
|
| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
|
| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Parameter | Type | Description |
---|---|---|
|
|
HTTP code | Reponse body |
---|---|
200 - OK |
|
201 - Created |
|
401 - Unauthorized | Empty |
5.2.4. /apis/oauth.openshift.io/v1/watch/oauthclients/{name}
Parameter | Type | Description |
---|---|---|
|
| name of the OAuthClient |
- HTTP method
-
GET
- Description
- watch changes to an object of kind OAuthClient. deprecated: use the 'watch' parameter with a list operation instead, filtered to a single item with the 'fieldSelector' parameter.
HTTP code | Reponse body |
---|---|
200 - OK |
|
401 - Unauthorized | Empty |