feat: single namespace (#65)

Closes #64
Closes #63
This commit is contained in:
Jakub Błaszczyk
2021-05-13 13:50:21 +02:00
committed by GitHub
parent 2658f82cc6
commit 0d726dd0b7
11 changed files with 315 additions and 195 deletions

View File

@ -32,7 +32,4 @@ spec:
endpoint: /clients
forwardedProto: https
tokenEndpointAuthMethod: client_secret_basic
metadata:
property1: 1
property2: "2"

View File

@ -0,0 +1,44 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: custom-namespace
---
apiVersion: v1
kind: Secret
metadata:
name: my-secret-123
namespace: custom-namespace
type: Opaque
data:
client_id: NDI0MjQyNDI=
client_secret: czNjUjM3cDRzc1ZWMHJENDMyMQ==
---
apiVersion: hydra.ory.sh/v1alpha1
kind: OAuth2Client
metadata:
name: my-oauth2-client-3
namespace: custom-namespace
spec:
grantTypes:
- client_credentials
- implicit
- authorization_code
- refresh_token
responseTypes:
- id_token
- code
- token
scope: "read write"
secretName: my-secret-123
# these are optional
redirectUris:
- https://client/account
- http://localhost:8080
postLogoutRedirectUris:
- https://client/logout
audience:
- audience-a
- audience-b
hydraAdmin: {}
tokenEndpointAuthMethod: client_secret_basic

View File

@ -34,14 +34,5 @@ spec:
audience:
- audience-a
- audience-b
hydraAdmin:
# if hydraAdmin is specified, all of these fields are requried,
# but they can be empty/0
url: http://hydra-admin.namespace.cluster.domain
port: 4445
endpoint: /clients
forwardedProto: https
hydraAdmin: {}
tokenEndpointAuthMethod: client_secret_basic
metadata:
property1: 1
property2: "2"