-
- All Implemented Interfaces:
-
ai.tock.shared.security.auth.TockAuthProvider,io.vertx.ext.auth.authentication.AuthenticationProvider
public abstract class CASAuthProvider extends SSOTockAuthProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCASAuthProvider.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringenabledPacAuthorizersprivate final StringsessionCookieNameprivate final Vertxvertx
-
Constructor Summary
Constructors Constructor Description CASAuthProvider(Vertx vertx)
-
Method Summary
Modifier and Type Method Description StringgetEnabledPacAuthorizers()UnithandleUpgradeFailure(RoutingContext rc, Integer code, Throwable cause)Handle failures in 'Pac4J user to Tock User' upgrade process abstract ConfiggetConfig()Get customer specific Pac4J Config abstract StringreadCasLogin(Pac4jUser user)Read Toc Login from CAS user info abstract Map<String, Set<String>>readRolesByNamespace(Pac4jUser user)Read Toc Namespace from CAS user infos AuthenticationHandlercreateAuthHandler(WebVerticle verticle)Unitauthenticate(JsonObject authInfo, Handler<AsyncResult<User>> resultHandler)AuthenticationHandlerprotectPaths(WebVerticle verticle, Set<String> pathsToProtect, SessionHandler sessionHandler)Protect paths for the specified verticle. Set<Regex>excludedPaths(WebVerticle verticle)Paths to exclude from the AuthProvider. -
Methods inherited from class ai.tock.shared.security.auth.SSOTockAuthProvider
getSessionCookieName, getVertx -
Methods inherited from class ai.tock.shared.security.auth.TockAuthProvider
defaultExcludedPaths, toTockUser -
Methods inherited from class io.vertx.ext.auth.authentication.AuthenticationProvider
authenticate, authenticate, authenticate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getEnabledPacAuthorizers
String getEnabledPacAuthorizers()
-
handleUpgradeFailure
Unit handleUpgradeFailure(RoutingContext rc, Integer code, Throwable cause)
Handle failures in 'Pac4J user to Tock User' upgrade process
-
getConfig
abstract Config getConfig()
Get customer specific Pac4J Config
-
readCasLogin
abstract String readCasLogin(Pac4jUser user)
Read Toc Login from CAS user info
-
readRolesByNamespace
abstract Map<String, Set<String>> readRolesByNamespace(Pac4jUser user)
Read Toc Namespace from CAS user infos
-
createAuthHandler
AuthenticationHandler createAuthHandler(WebVerticle verticle)
-
authenticate
Unit authenticate(JsonObject authInfo, Handler<AsyncResult<User>> resultHandler)
-
protectPaths
AuthenticationHandler protectPaths(WebVerticle verticle, Set<String> pathsToProtect, SessionHandler sessionHandler)
Protect paths for the specified verticle.
-
excludedPaths
Set<Regex> excludedPaths(WebVerticle verticle)
Paths to exclude from the AuthProvider.
-
-
-
-