feat: add jwks uri (#126)
This commit is contained in:
parent
5f7526bbaf
commit
d5caace0e3
@ -116,6 +116,12 @@ type OAuth2ClientSpec struct {
|
|||||||
//
|
//
|
||||||
// Metadata is abritrary data
|
// Metadata is abritrary data
|
||||||
Metadata apiextensionsv1.JSON `json:"metadata,omitempty"`
|
Metadata apiextensionsv1.JSON `json:"metadata,omitempty"`
|
||||||
|
|
||||||
|
// +kubebuilder:validation:type=string
|
||||||
|
// +kubebuilder:validation:Pattern=`(^$|^https?://.*)`
|
||||||
|
//
|
||||||
|
// JwksUri Define the URL where the JSON Web Key Set should be fetched from when performing the private_key_jwt client authentication method.
|
||||||
|
JwksUri string `json:"jwksUri,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// +kubebuilder:validation:Enum=client_credentials;authorization_code;implicit;refresh_token
|
// +kubebuilder:validation:Enum=client_credentials;authorization_code;implicit;refresh_token
|
||||||
|
@ -114,6 +114,13 @@ spec:
|
|||||||
pattern: (^$|^https?://.*)
|
pattern: (^$|^https?://.*)
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
jwksUri:
|
||||||
|
description:
|
||||||
|
Define the URL where the JSON Web Key Set should be fetched
|
||||||
|
from when performing the private_key_jwt client
|
||||||
|
authentication method.
|
||||||
|
pattern: (^$|^https?://.*)
|
||||||
|
type: string
|
||||||
metadata:
|
metadata:
|
||||||
description: Metadata is abritrary data
|
description: Metadata is abritrary data
|
||||||
nullable: true
|
nullable: true
|
||||||
|
@ -28,6 +28,7 @@ type OAuth2ClientJSON struct {
|
|||||||
Owner string `json:"owner"`
|
Owner string `json:"owner"`
|
||||||
TokenEndpointAuthMethod string `json:"token_endpoint_auth_method,omitempty"`
|
TokenEndpointAuthMethod string `json:"token_endpoint_auth_method,omitempty"`
|
||||||
Metadata json.RawMessage `json:"metadata,omitempty"`
|
Metadata json.RawMessage `json:"metadata,omitempty"`
|
||||||
|
JwksUri string `json:"jwks_uri,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Oauth2ClientCredentials represents client ID and password fetched from a
|
// Oauth2ClientCredentials represents client ID and password fetched from a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user