infra: add custom oauthclients

This commit is contained in:
xeruf 2022-11-16 10:15:17 +00:00
parent d31f5edb68
commit ce768cb734
2 changed files with 39 additions and 5 deletions

View File

@ -1,5 +1,4 @@
# https://metallb.org/usage/
#apiVersion: metallb.io/v1beta1
apiVersion: v1
kind: Service
metadata:
@ -17,7 +16,3 @@ spec:
targetPort: 22
selector:
app: gitea
#status:
# loadBalancer:
# ingress:
# - ip: "${ip_address}"

View File

@ -0,0 +1,39 @@
apiVersion: hydra.ory.sh/v1alpha1
kind: OAuth2Client
metadata:
name: nextcloud-home-oauth-client
namespace: flux-system
spec:
grantTypes:
- authorization_code
- refresh_token
- client_credentials
- implicit
responseTypes:
- id_token
- code
scope: "openid profile email stackspin_roles"
secretName: stackspin-nextcloud-home-oauth-variables
redirectUris:
- https://files.home.${domain}/apps/sociallogin/custom_oidc/stackspin
tokenEndpointAuthMethod: client_secret_post
--
apiVersion: hydra.ory.sh/v1alpha1
kind: OAuth2Client
metadata:
name: wikijs-oauth-client
namespace: flux-system
spec:
grantTypes:
- authorization_code
- refresh_token
- client_credentials
- implicit
responseTypes:
- id_token
- code
scope: "openid profile email stackspin_roles"
secretName: stackspin-wikijs-oauth-variables
#redirectUris:
# - https://wiki.${domain}/user/oauth2/Stackspin/callback
tokenEndpointAuthMethod: client_secret_post