Package 

Class CASAuthProvider

  • All Implemented Interfaces:
    ai.tock.shared.security.auth.TockAuthProvider , io.vertx.ext.auth.authentication.AuthenticationProvider

    
    public abstract class CASAuthProvider
    extends SSOTockAuthProvider
                        
    • Constructor Summary

      Constructors 
      Constructor Description
      CASAuthProvider(Vertx vertx)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getEnabledPacAuthorizers()
      Unit handleUpgradeFailure(RoutingContext rc, Integer code, Throwable cause) Handle failures in 'Pac4J user to Tock User' upgrade process
      abstract Config getConfig() Get customer specific Pac4J Config
      abstract String readCasLogin(Pac4jUser user) Read Toc Login from CAS user info
      abstract Map<String, Set<String>> readRolesByNamespace(Pac4jUser user) Read Toc Namespace from CAS user infos
      AuthenticationHandler createAuthHandler(WebVerticle verticle)
      Unit authenticate(JsonObject authInfo, Handler<AsyncResult<User>> resultHandler)
      AuthenticationHandler protectPaths(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