Skip to content

Commit

Permalink
OIDCNG: Make the device flow configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Oct 14, 2024
1 parent 27af4e0 commit 8699d72
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/oidcng/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ oidcng_idp_metadata_url: https://engine.{{ base_domain }}/authentication/idp/met
oidcng_base_hostname: connect.{{ base_domain }}
oidcng_logback_email: true
oidcng_logback_json: true
oidcng_device_flow: false
oidcng_idp_sso_location: https://engine.{{ base_domain }}/authentication/idp/single-sign-on
oidcng_manage_provision_samlsp_client_id: "https://connect.{{ base_domain }}"
oidcng_manage_provision_samlsp_name_en: "{{ instance_name }} OIDC Gateway"
Expand All @@ -18,3 +19,4 @@ oidcng_manage_provision_samlsp_metadata_url: "https://connect.{{ base_domain }}/
oidcng_manage_provision_samlsp_sp_cert: "{{ lookup('file', '{{ inventory_dir }}/files/certs/oidc/oidcsaml.crt') | depem }}"
oidcng_manage_provision_samlsp_sign: "True"
oidcng_manage_provision_samlsp_trusted_proxy: "True"

2 changes: 2 additions & 0 deletions roles/oidcng/templates/application.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ certificate_path: file://{{ oidcng_config_dir }}/oidcsaml.crt
default_acr_value: {{ oidcng.default_acr_value }}
secure_cookie: true
oidc_token_endpoint: https://connect.{{ base_domain }}/oidc/token
{% if oidcng_device_flow | bool %}
device_verification_url: https://connect.{{ base_domain }}/oidc/verify
{% endif %}
environment: {{ oidcng.environment }}

features:
Expand Down
8 changes: 6 additions & 2 deletions roles/oidcng/templates/openid-configuration.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"userinfo_endpoint": "https://{{ oidcng_base_hostname }}/oidc/userinfo",
"introspect_endpoint": "https://{{ oidcng_base_hostname }}/oidc/introspect",
"jwks_uri": "https://{{ oidcng_base_hostname }}/oidc/certs",
{% if oidcng_device_flow | bool %}
"device_authorization_endpoint": "https://{{ oidcng_base_hostname }}/oidc/device_authorization",
{% endif %}
"response_types_supported": [
"code",
"token",
Expand All @@ -24,8 +26,10 @@
"authorization_code",
"implicit",
"refresh_token",
"client_credentials",
"urn:ietf:params:oauth:grant-type:device_code"
{% if oidcng_device_flow | bool %}
"urn:ietf:params:oauth:grant-type:device_code",
{% endif %}
"client_credentials"
],
"subject_types_supported": [
"public",
Expand Down

0 comments on commit 8699d72

Please sign in to comment.