Interface AuthModule

    • Method Detail

      • getSpec

        Spec getSpec()
        Returns the valid configuration of the input args of this AuthModule.
        Returns:
        the argument specification.
      • init

        void init​(YConfiguration args)
           throws InitException
        Initialize this AuthModule.
        Parameters:
        args - The configured arguments for this AuthModule. If getSpec() is implemented then this contains the arguments after being validated (including any defaults).
        Throws:
        InitException - When something goes wrong during the execution of this method.
      • authenticationSucceeded

        default void authenticationSucceeded​(AuthenticationInfo authenticationInfo)
        Hook that is called on all AuthModules when a login attempt was successful.

        An example use case is an LDAP AuthModule that queries for additional user information after a successful Kerberos login.

        The default implementation does nothing.

      • verifyValidity

        boolean verifyValidity​(AuthenticationInfo authenticationInfo)
        Verify if previously generated authentication info is (still) valid. For example, if the authentication info references an externally issued expiring ticket, this can be validated here.

        This method is called very frequently, so implementations must take care to limit external requests.

        Parameters:
        authenticationInfo - information relevant to the authentication process
        Returns:
        true if the authentication info is valid, false otherwise