Skip to content

Commit 752172b

Browse files
authored
OIDC extra variables for bie. More configurable urls (#637)
* OIDC extra variables for bie. More configurable urls * Added support email * Added google literature link configuration
1 parent 632a463 commit 752172b

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

ansible/roles/bie-hub/defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ namematching_service_url: https://namematching-ws.ala.org.au
4040
profile_service_url: https://profiles-ws.ala.org.au/
4141
regions_url: https://regions.ala.org.au
4242
scholar_url: https://scholar.google.com
43+
google_url: https://www.google.com.au
4344
sightings_url: https://sightings.ala.org.au/
4445
skin_favicon: https://www.ala.org.au/app/uploads/2019/01/cropped-favicon-32x32.png
4546
skin_fluid_layout:

ansible/roles/bie-hub/templates/bie-hub-config.yml.j2

+14-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ security:
1717
contextPath: {{ bie_hub_context_path }}
1818
bypass: {{ bypass_cas }}
1919
applyUriFiltersToTicketValidation: false
20+
enabled: {{ security_cas_enabled | default(false) }}
2021
oidc:
21-
clientId: {{ clientId | default('') }}
22-
secret: {{ secret | default('') }}
22+
enabled: {{ security_oidc_enabled | default(true) }}
23+
clientId: {{ (bie_hub_clientId | default(clientId)) | default('') }}
24+
secret: {{ (bie_hub_secret | default(secret)) | default('') }}
2325
discoveryUri: {{ discoveryUri | default('') }}
2426
jwt:
2527
discoveryUri: {{ discoveryUri | default('') }}
@@ -53,6 +55,7 @@ ala:
5355
image:
5456
service:
5557
url: {{ image_service_url }}
58+
imageServiceBaseUrl: {{ image_service_url }}
5659
allowedImageEditingRoles: {{ allowed_image_editing_roles }}
5760

5861
# Skin and layout
@@ -84,6 +87,7 @@ spatial:
8487
baseURL: {{ spatial_base_url | default(spatial_url) }}
8588
collectory:
8689
baseURL: {{ collectory_url }}
90+
threatenedSpeciesCodesUrl: {{ collectory_url }}/public/showDataResource
8791
speciesList:
8892
baseURL: {{ species_list_url }}
8993
preferredSpeciesListDruid: {{ specieslist_preferredDruid }}
@@ -116,6 +120,8 @@ literature:
116120
url: {{ genbank_url }}
117121
scholar:
118122
url: {{ scholar_url }}
123+
google:
124+
url: {{ google_url }}
119125
trove:
120126
url: {{ trove_url }}
121127
api: {{ trove_service_url }}
@@ -168,3 +174,9 @@ eol:
168174
namematching:
169175
serviceURL: {{ namematching_service_url }}
170176

177+
dataquality:
178+
baseUrl: {{ data_quality_profiles_url | default('https://dataquality.ala.org.au/data-profiles') }}
179+
180+
speciesParent : {{ specieslist_iconic_species_url | default('https://lists.ala.org.au/iconic-species') }}
181+
182+
supportEmail: {{ support_email | default('support@ala.org.au') }}

ansible/roles/bie-index/templates/bie-index-config.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ security:
1515
logoutUrl: {{ auth_cas_url }}/logout
1616
contextPath: {{ bie_index_context_path }}
1717
bypass: {{ bypass_cas | default(true) }}
18+
enabled: {{ security_cas_enabled | default(false) }}
1819
oidc:
19-
clientId: {{ clientId | default('') }}
20-
secret: {{ secret | default('') }}
20+
enabled: {{ security_oidc_enabled | default(true) }}
21+
clientId: {{ (bie_index_clientId | default(clientId)) | default('') }}
22+
secret: {{ (bie_index_secret | default(secret)) | default('') }}
2123
discoveryUri: {{ discoveryUri | default('') }}
2224
jwt:
2325
discoveryUri: {{ discoveryUri | default('') }}
@@ -123,3 +125,11 @@ ala:
123125
bie:
124126
baseURL: {{ bie_base_url | default('https://bie.ala.org.au') }}
125127
searchPath: {{ bie_search_path | default('/search') }}
128+
openapi:
129+
components:
130+
security:
131+
oauth2:
132+
baseUrl: {{ auth_cas_url }}/oidc
133+
authorizationUrl: {{ auth_cas_url }}/oidc/authorize
134+
refreshUrl: {{ auth_cas_url }}/oidc/refresh
135+
tokenUrl: {{ auth_cas_url }}/oidc/token

0 commit comments

Comments
 (0)