Docker-Compose SSO example (exampleYmlFiles/docker-compose-latest-security-with-sso.yml) no longer works
pcanham opened this issue · comments
Docker-compose example no longer works after 0.25.0 upgrade, need to find out what the new environment variables are for getting this working.
The following error is generated on startup
08:04:06.121 [main] INFO o.s.o.j.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
08:04:11.330 [main] INFO o.e.j.s.DefaultSessionIdManager - Session workerName=node0
08:04:11.393 [main] INFO o.e.j.server.handler.ContextHandler - Started osbwej.JettyEmbeddedWebAppContext@6affbed1{application,/,b=[file:/tmp/jetty-docbase.8080.12348239298238036074/, URLResource@E78D3329(jar:nested:///app-security.jar/!BOOT-INF/lib/swagger-ui-5.2.0.jar!/META-INF/resources/)],a=AVAILABLE,h=oeje10s.SessionHandler@6fe43257{STARTED}}
08:04:11.408 [main] INFO o.e.j.e.s.ServletContextHandler - Started osbwej.JettyEmbeddedWebAppContext@6affbed1{application,/,b=[file:/tmp/jetty-docbase.8080.12348239298238036074/, URLResource@E78D3329(jar:nested:///app-security.jar/!BOOT-INF/lib/swagger-ui-5.2.0.jar!/META-INF/resources/)],a=AVAILABLE,h=oeje10s.SessionHandler@6fe43257{STARTED}}
08:04:11.457 [main] INFO org.eclipse.jetty.server.Server - Started oejs.Server@46894dc5{STARTING}[12.0.7,sto=0] @51820ms
08:04:11.574 [main] INFO s.software.SPDF.SPdfApplication - Running configs ApplicationProperties [security=Security [enableLogin=true, oauth2=OAUTH2 [enabled=true, issuer=null, clientId=null, clientSecret=NULL, autoCreateUser=true, useAsUsername=null, provider=custom, scopes=[]], initialLogin=null, csrfDisabled=true], system=System [defaultLocale="en_GB", googlevisibility=false, enableAlphaFunctionality=false, showUpdate=false, showUpdateOnlyAdmin=false], ui=UserInterface [appName=Stirling-PDF, homeDescription=Stirling-PDF self hosted, appNameNavbar=Stirling-PDF], endpoints=Endpoints [toRemove=[], groupsToRemove=[]], metrics=Metrics [enabled=true], automaticallyGenerated=AutomaticallyGenerated [key=MASKED], autoPipeline=null]
Invalid APP_LOCALE environment variable value. Falling back to default Locale.UK.
08:04:20.660 [main] ERROR s.s.S.c.s.SecurityConfiguration - At least one OAuth2 provider must be configured
Just tested and works
here is also another working example which I have tested
---
version: "3.8"
services:
stirling-pdf:
image: frooodle/s-pdf:0.25.0
container_name: stirling-pdf
logging:
options:
max-size: "100m"
max-file: "5"
environment:
- PUID=1000
- PGID=1000
- TZ="Etc/UTC"
- LANGS="en_GB"
- SYSTEM_DEFAULTLOCALE="en_GB"
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=true
- DOCKER_ENABLE_SECURITY=true
- SECURITY_ENABLELOGIN=true
- SECURITY_OAUTH2_ENABLED=true
- SECURITY_OAUTH2_AUTOCREATEUSER=true
- SECURITY_OAUTH2_PROVIDER=keycloak
- SECURITY_OAUTH2_ISSUER=https://<redacted>
- SECURITY_OAUTH2_CLIENTID=<redacted>
- SECURITY_OAUTH2_CLIENTSECRET=<redacted>
- SECURITY_OAUTH2_SCOPES=openid,profile,email
- SECURITY_OAUTH2_USEASUSERNAME=email
- UI_APPNAME=Stirling-PDF
- UI_HOMEDESCRIPTION=Stirling-PDF self hosted
- UI_APPNAMENAVBAR=Stirling-PDF