Package at.jku.dke.etutor.task_app.auth
package at.jku.dke.etutor.task_app.auth
This package contains all authentication-related classes.
In order to define clients, specify them in the application properties in following format:
clients: api-keys: - name: task-administration key: my-secret-administration-key roles: - CRUD - SUBMIT - name: plag-check key: my-secret-plag-check-key role: READ_SUBMISSION - ...You can find the supported roles in
AuthConstants
.-
ClassDescriptionAPI-key authentication token.Loads the clients from the application-properties.Represents an API-key.Specifies some authentication/authorization constants.Filter that authenticates the client using an API-key (if present).Provides a method for authenticating clients using API keys.