Skip to content

Commit

Permalink
default when no base_url
Browse files Browse the repository at this point in the history
  • Loading branch information
Ro3090 committed Dec 19, 2023
1 parent d7924d3 commit 9a5bb90
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"ALLOWED_URLS": ["/{{ vitamui_struct.vitamui_component | regex_replace('^ui-', '') }}-api"],
{% endif %}
"OIDC_CONFIG": {
"issuer": "{{ vitamui.cas_server.base_url | default(url_prefix+'/cas') }}"/oidc",
"issuer": "{{ vitamui.cas_server.base_url | default(url_prefix+'/cas') }}/oidc",
"redirectUri": "?",
"postLogoutRedirectUri": "{{ vitamui.portal.base_url | default(url_prefix+'/') }}",
"clientId": "{{ vitamui_struct.vitamui_component | regex_replace('^ui-', '') }}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ db.services.insertOne({
_id: NumberInt(1),
_class: "org.apereo.cas.services.OidcRegisteredService",
clientId: "{{ vitamui.portal.clientId | default('portal') }}",
serviceId: "{{ vitamui.portal.serviceId | default('^' + vitamui.portal.base_url + '/.*') }}",
serviceId: "{{ vitamui.portal.serviceId | default('^' + vitamui.portal.base_url | default(url_prefix) + '/.*') }}",
name: "{{ vitamui.portal.name | default('Portal Application') }}",
bypassApprovalPrompt: true,
supportedGrantTypes: ["authorization_code"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ db.services.insertOne({
_id: NumberInt(2),
_class: "org.apereo.cas.services.OidcRegisteredService",
clientId: "{{ vitamui.identity.clientId | default('identity') }}",
serviceId: "{{ vitamui.identity.serviceId | default('^' + vitamui.identity.base_url + '/.*') }}",
serviceId: "{{ vitamui.identity.serviceId | default('^' + vitamui.identity.base_url | default(url_prefix+'/identity') + '/.*') }}",
name: "{{ vitamui.identity.name | default('Identity Access Management Application') }}",
bypassApprovalPrompt: true,
supportedGrantTypes: ["authorization_code"],
Expand All @@ -29,7 +29,7 @@ db.services.insertOne({
_id: NumberInt(3),
_class: "org.apereo.cas.services.OidcRegisteredService",
clientId: "{{ vitamui.identity_admin.clientId | default('identity-admin') }}",
serviceId: "{{ vitamui.identity_admin.serviceId | default('^' + vitamui.identity_admin.base_url + '/.*') }}",
serviceId: "{{ vitamui.identity_admin.serviceId | default('^' + vitamui.identity_admin.base_url | default(url_prefix+'/identity_admin') + '/.*') }}",
name: "{{ vitamui.identity_admin.name | default('Identity Admin Access Management Application') }}",
bypassApprovalPrompt: true,
supportedGrantTypes: ["authorization_code"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ db.services.insertOne({
_id: NumberInt(4),
_class: "org.apereo.cas.services.OidcRegisteredService",
clientId: "{{ vitamui.referential.clientId | default('referential') }}",
serviceId: "{{ vitamui.referential.serviceId | default('^' + vitamui.referential.base_url + '/.*') }}",
serviceId: "{{ vitamui.referential.serviceId | default('^' + vitamui.referential.base_url | default(url_prefix+'/referential') + '/.*') }}",
name: "{{ vitamui.referential.name | default('Referential Application') }}",
bypassApprovalPrompt: true,
supportedGrantTypes: ["authorization_code"],
Expand Down

0 comments on commit 9a5bb90

Please sign in to comment.