Skip to content

Commit

Permalink
Update application.groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-brinkman committed Jul 29, 2024
1 parent 417e361 commit 0628f25
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions grails-app/conf/application.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ collectory.service.url= "https://collections.ala.org.au"

ecodata.baseURL= "https://ecodata.ala.org.au/"

webservice['jwt-scopes'] = "ala/internal users/read ala/attrs ecodata/read ecodata/write"

if(!app.domain.whiteList) {
app.domain.whiteList = "ala.org.au,localhost"
}
Expand Down Expand Up @@ -55,6 +53,13 @@ environments {
grails.config.locations = []
security.oidc.discoveryUri = "http://localhost:${wiremock.port}/cas/oidc/.well-known"
security.oidc.allowUnsignedIdTokens = true
security.oidc.clientId="oidcId"
security.oidc.secret="oidcSecret"
webservice['client-id']="jwtId"
webservice['client-secret'] = "jwtSecret"
tokenURI = "http://localhost:${wiremock.port}/cas/oidc/oidcAccessToken"
jwkURI = "http://localhost:${wiremock.port}/cas/oidc/jwks"
issuerURI = "http://localhost:${wiremock.port}/cas/oidc"
def casBaseUrl = "http://localhost:${wiremock.port}"
ehcache.directory = './ehcache'
security.cas.appServerName=serverName
Expand Down Expand Up @@ -128,12 +133,17 @@ security.oidc.enabled= true
security.oidc.discoveryUri= "${auth.baseURL}/cas/oidc/.well-known"
security.oidc.clientId= "changeMe"
security.oidc.secret= "changeMe"
security.oidc.scope= "openid,profile,email,ala,roles"
security.oidc.scope= "openid profile email roles user_defined ala"
security.oidc.allowUnsignedIdTokens= true

security.jwt.enabled= true
security.jwt.discoveryUri= "${auth.baseURL}/cas/oidc/.well-known"
security.jwt.fallbackToLegacyBehaviour= true
// security.jwt.fallbackToLegacyBehaviour= true

webservice.jwt = true
webservice['jwt-scopes'] = "ala/internal users/read ala/attrs ecodata/read ecodata/write"
webservice['client-id']='changeMe'
webservice['client-secret'] = 'changeMe'

dataAccessMethods = [
"oasrdfs",
Expand Down

0 comments on commit 0628f25

Please sign in to comment.