adds sso config for forgejo
This commit is contained in:
parent
03768e8399
commit
ca54424fc4
3 changed files with 44 additions and 0 deletions
9
template/stacks/core/forgejo/secret.yaml
Normal file
9
template/stacks/core/forgejo/secret.yaml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: gitea-credentials
|
||||||
|
namespace: gitea
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
key: forgejo
|
||||||
|
secret: nEJ7tmVYLjwuycF4vhBzCY8BVfk9LHDY
|
|
@ -27,6 +27,12 @@ gitea:
|
||||||
server:
|
server:
|
||||||
DOMAIN: 'gitea.{{{ .Env.DOMAIN }}}'
|
DOMAIN: 'gitea.{{{ .Env.DOMAIN }}}'
|
||||||
ROOT_URL: 'https://gitea.{{{ .Env.DOMAIN }}}:443'
|
ROOT_URL: 'https://gitea.{{{ .Env.DOMAIN }}}:443'
|
||||||
|
oauth:
|
||||||
|
- name: 'Keycloak'
|
||||||
|
provider: 'openidConnect'
|
||||||
|
# or with 'key' and 'secret' parameter directly
|
||||||
|
existingSecret: gitea-credentials
|
||||||
|
autoDiscoverUrl: 'https://gitea.example.com/.well-known/openid-configuration'
|
||||||
|
|
||||||
service:
|
service:
|
||||||
ssh:
|
ssh:
|
||||||
|
|
|
@ -181,6 +181,35 @@ data:
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
forgejo-client-payload.json: |
|
||||||
|
{
|
||||||
|
"protocol": "openid-connect",
|
||||||
|
"clientId": "forgejo",
|
||||||
|
"name": "Forgejo Client",
|
||||||
|
"description": "Used for Forgejo SSO",
|
||||||
|
"publicClient": false,
|
||||||
|
"authorizationServicesEnabled": false,
|
||||||
|
"serviceAccountsEnabled": false,
|
||||||
|
"implicitFlowEnabled": false,
|
||||||
|
"directAccessGrantsEnabled": true,
|
||||||
|
"standardFlowEnabled": true,
|
||||||
|
"frontchannelLogout": true,
|
||||||
|
"attributes": {
|
||||||
|
"saml_idp_initiated_sso_url_name": "",
|
||||||
|
"oauth2.device.authorization.grant.enabled": false,
|
||||||
|
"oidc.ciba.grant.enabled": false
|
||||||
|
},
|
||||||
|
"alwaysDisplayInConsole": false,
|
||||||
|
"rootUrl": "https://{{{ .Env.DOMAIN }}}",
|
||||||
|
"baseUrl": "",
|
||||||
|
"redirectUris": [
|
||||||
|
"https://{{{ .Env.DOMAIN }}}/*"
|
||||||
|
],
|
||||||
|
"webOrigins": [
|
||||||
|
"/*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
|
|
Loading…
Reference in a new issue