KEYCLOAK-6392 Install elytron adapter on windows
This commit is contained in:
parent
502627f590
commit
f0511c5f51
2 changed files with 40 additions and 4 deletions
|
@ -23,13 +23,48 @@ goto wait_for_jboss
|
||||||
|
|
||||||
:install_adapters
|
:install_adapters
|
||||||
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%JBOSS_HOME%\bin\adapter-install.cli"
|
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%JBOSS_HOME%\bin\adapter-install.cli"
|
||||||
if %ERRORLEVEL% neq 0 set ERROR=%ERRORLEVEL%
|
set ERROR=%ERRORLEVEL%
|
||||||
if "%SAML_SUPPORTED%" == "true" (
|
echo Installation of OIDC adapter ended with error code: "%ERROR%"
|
||||||
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%JBOSS_HOME%\bin\adapter-install-saml.cli"
|
if %ERROR% neq 0 (
|
||||||
if %ERRORLEVEL% neq 0 set ERROR=%ERRORLEVEL%
|
goto shutdown_jboss
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%ELYTRON_SUPPORTED%" == "true" (
|
||||||
|
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%JBOSS_HOME%\bin\adapter-elytron-install.cli"
|
||||||
|
set ERROR=%ERRORLEVEL%
|
||||||
|
echo Installation of elytron ended with error code: "%ERROR%"
|
||||||
|
if %ERROR% neq 0 (
|
||||||
|
goto shutdown_jboss
|
||||||
|
)
|
||||||
|
) else (
|
||||||
|
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%CLI_PATH%\remove-elytron-subsystem.cli"
|
||||||
|
set ERROR=%ERRORLEVEL%
|
||||||
|
echo Removing elytron subsystem ended with error code: "%ERROR%"
|
||||||
|
if %ERROR% neq 0 (
|
||||||
|
goto shutdown_jboss
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if "%SAML_SUPPORTED%" == "true" (
|
||||||
|
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%JBOSS_HOME%\bin\adapter-install-saml.cli"
|
||||||
|
set ERROR=%ERRORLEVEL%
|
||||||
|
echo Installation of SAML adapter ended with error code: "%ERROR%"
|
||||||
|
if %ERROR% neq 0 (
|
||||||
|
goto shutdown_jboss
|
||||||
|
)
|
||||||
|
|
||||||
|
if "%ELYTRON_SUPPORTED%" == "true" (
|
||||||
|
call %JBOSS_HOME%\bin\jboss-cli.bat -c --file="%JBOSS_HOME%\bin\adapter-elytron-install-saml.cli"
|
||||||
|
set ERROR=%ERRORLEVEL%
|
||||||
|
echo Installation of saml elytron ended with error code: "%ERROR%"
|
||||||
|
if %ERROR% neq 0 (
|
||||||
|
goto shutdown_jboss
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
:shutdown_jboss
|
:shutdown_jboss
|
||||||
|
echo Shutting down with error code: "%ERROR%"
|
||||||
call %JBOSS_HOME%\bin\jboss-cli.bat -c --command=":shutdown"
|
call %JBOSS_HOME%\bin\jboss-cli.bat -c --command=":shutdown"
|
||||||
exit /b %ERROR%
|
exit /b %ERROR%
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
<security.xslt>security.xsl</security.xslt>
|
<security.xslt>security.xsl</security.xslt>
|
||||||
<oidc-adapter.version>${project.version}</oidc-adapter.version>
|
<oidc-adapter.version>${project.version}</oidc-adapter.version>
|
||||||
<saml-adapter.version>${project.version}</saml-adapter.version>
|
<saml-adapter.version>${project.version}</saml-adapter.version>
|
||||||
|
<app.server.elytron.adapter.supported>false</app.server.elytron.adapter.supported>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
|
|
Loading…
Reference in a new issue