- SecretName is now mandatory - One can update client_secret in Hydra by creating new Secret object and changing the SecretName in CR instance
28 lines
497 B
YAML
28 lines
497 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: my-secret-456
|
|
namespace: default
|
|
type: Opaque
|
|
data:
|
|
client_id: MDA5MDA5MDA=
|
|
client_secret: czNjUjM3cDRzc1ZWMHJEMTIzNA==
|
|
---
|
|
apiVersion: hydra.ory.sh/v1alpha1
|
|
kind: OAuth2Client
|
|
metadata:
|
|
name: my-oauth2-client-2
|
|
namespace: default
|
|
spec:
|
|
grantTypes:
|
|
- client_credentials
|
|
- implicit
|
|
- authorization_code
|
|
- refresh_token
|
|
responseTypes:
|
|
- id_token
|
|
- code
|
|
- token
|
|
scope: "read write"
|
|
secretName: my-secret-456
|