39 lines
757 B
YAML
39 lines
757 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
|
|
# these are optional
|
|
redirectUris:
|
|
- https://client/account
|
|
- http://localhost:8080
|
|
postLogoutRedirectUris:
|
|
- https://client/logout
|
|
audience:
|
|
- audience-a
|
|
- audience-b
|
|
hydraAdmin: {}
|
|
tokenEndpointAuthMethod: client_secret_basic
|