-
- All Implemented Interfaces:
-
ai.tock.shared.security.auth.TockAuthProvider,io.vertx.ext.auth.AuthProvider
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 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 AuthHandlercreateAuthHandler(WebVerticle verticle)Unitauthenticate(JsonObject authInfo, Handler<AsyncResult<User>> resultHandler)AuthHandlerprotectPaths(WebVerticle verticle, Set<String> pathsToProtect, SessionHandler sessionHandler)Protect paths for the specified verticle. Set<Regex>excludedPaths(WebVerticle verticle)Paths to exclude from the AuthProvider. StringgetEnabledPacAuthorizers()StringgetSessionCookieName()final VertxgetVertx()-
Methods inherited from class ai.tock.shared.security.auth.SSOTockAuthProvider
toTockUser -
Methods inherited from class io.vertx.ext.auth.AuthProvider
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
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
AuthHandler createAuthHandler(WebVerticle verticle)
-
authenticate
Unit authenticate(JsonObject authInfo, Handler<AsyncResult<User>> resultHandler)
-
protectPaths
AuthHandler 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.
-
getEnabledPacAuthorizers
String getEnabledPacAuthorizers()
-
getSessionCookieName
String getSessionCookieName()
-
getVertx
final Vertx getVertx()
-
-
-
-