connect wip

This commit is contained in:
Jason Ertel
2024-10-17 11:39:36 -04:00
parent 1537b69457
commit 4611ef3713
2 changed files with 11 additions and 9 deletions

View File

@@ -2,13 +2,10 @@ hydra:
enabled: False enabled: False
config: config:
serve: serve:
cookies: public:
same_site_mode: Lax port: 4444
admin:
public: port: 4445
port: 4444
admin:
port: 4445
urls: urls:
self: self:
issuer: https://URL_BASE/connect issuer: https://URL_BASE/connect
@@ -19,8 +16,6 @@ hydra:
identity_provider: identity_provider:
url: http://127.0.0.1:4434/admin url: http://127.0.0.1:4434/admin
publicUrl: https://URL_BASE/auth publicUrl: https://URL_BASE/auth
headers:
Authorization: Bearer some-token
secrets: secrets:
system: [] system: []

View File

@@ -6,4 +6,11 @@
{% from 'vars/globals.map.jinja' import GLOBALS %} {% from 'vars/globals.map.jinja' import GLOBALS %}
{% import_yaml 'hydra/defaults.yaml' as HYDRADEFAULTS %} {% import_yaml 'hydra/defaults.yaml' as HYDRADEFAULTS %}
{% do HYDRADEFAULTS.hydra.config.urls.self.update({'issuer': HYDRADEFAULTS.hydra.config.urls.self.issuer | replace("URL_BASE", GLOBALS.url_base)}) %}
{% do HYDRADEFAULTS.hydra.config.urls.self.update({'public': HYDRADEFAULTS.hydra.config.urls.self.public | replace("URL_BASE", GLOBALS.url_base)}) %}
{% do HYDRADEFAULTS.hydra.config.urls.self.update({'admin': HYDRADEFAULTS.hydra.config.urls.self.admin | replace("URL_BASE", GLOBALS.url_base)}) %}
{% do HYDRADEFAULTS.hydra.config.urls.update({'login': HYDRADEFAULTS.hydra.config.urls.login | replace("URL_BASE", GLOBALS.url_base)}) %}
{% do HYDRADEFAULTS.hydra.config.urls.update({'logout': HYDRADEFAULTS.hydra.config.urls.logout | replace("URL_BASE", GLOBALS.url_base)}) %}
{% do HYDRADEFAULTS.hydra.config.urls.identity_provider.update({'publicUrl': HYDRADEFAULTS.hydra.config.urls.identity_provider.publicUrl | replace("URL_BASE", GLOBALS.url_base)}) %}
{% set HYDRAMERGED = salt['pillar.get']('hydra', default=HYDRADEFAULTS.hydra, merge=true) %} {% set HYDRAMERGED = salt['pillar.get']('hydra', default=HYDRADEFAULTS.hydra, merge=true) %}