Class KeycloakAuthProvider
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.auth.keycloak.KeycloakAuthProvider
- All Implemented Interfaces:
AuthProvider,LiquibaseUser
- Author:
- scf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(Object context, CoreSettings coreSettings) checkForUpgrades(Map<String, Object> liquibaseParams) createLiqibaseParams(PersistenceManager pm, Map<String, Object> target) booleandoUpgrades(Writer out, Map<String, Object> liquibaseParams) getUserPrincipal(String clientId) init(CoreSettings coreSettings) booleanisValidUser(String clientId, String username, String password) booleanuserHasRole(String clientId, String userName, String roleName)
-
Constructor Details
-
KeycloakAuthProvider
public KeycloakAuthProvider()
-
-
Method Details
-
init
- Specified by:
initin interfaceLiquibaseUser
-
addFilter
- Specified by:
addFilterin interfaceAuthProvider
-
isValidUser
- Specified by:
isValidUserin interfaceAuthProvider
-
userHasRole
- Specified by:
userHasRolein interfaceAuthProvider
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfaceAuthProvider
-
createLiqibaseParams
- Specified by:
createLiqibaseParamsin interfaceLiquibaseUser
-
checkForUpgrades
- Specified by:
checkForUpgradesin interfaceLiquibaseUser
-
doUpgrades
public boolean doUpgrades(Writer out, Map<String, Object> liquibaseParams) throws UpgradeFailedException, IOException- Specified by:
doUpgradesin interfaceLiquibaseUser- Throws:
UpgradeFailedExceptionIOException
-