Package auth.gui

Class AuthApiToken

  • All Implemented Interfaces:
    AuthAction.AuthMethod

    @Singleton
    public class AuthApiToken
    extends java.lang.Object
    implements AuthAction.AuthMethod
    Authentication via personal access tokens (API tokens) that can be used with JATOS API. API tokens are associated with a user and have the same access rights as the user. For a successful authentication, the token must be put in the 'Authorization' header with a 'Bearer' prefix. JATOS' API token has a prefex 'jap_'. The User and the ApiToken objects are put in the RequestScope for later use during request processing.