adds sso config for forgejo

This commit is contained in:
franz.germann 2025-02-25 11:34:44 +01:00
parent 03768e8399
commit ca54424fc4
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: gitea-credentials
namespace: gitea
type: Opaque
stringData:
key: forgejo
secret: nEJ7tmVYLjwuycF4vhBzCY8BVfk9LHDY

View file

@ -27,6 +27,12 @@ gitea:
server:
DOMAIN: 'gitea.{{{ .Env.DOMAIN }}}'
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:
ssh:

View file

@ -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
kind: Job