AuthMiddleware
io.github.edadma.apion.AuthMiddleware
object AuthMiddleware
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AuthMiddleware.type
Members list
Type members
Classlikes
Authentication context for requests
Authentication context for requests
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
case class AuthConfig(secretKey: String, requireAuth: Boolean, excludePaths: Set[String], tokenRefreshThreshold: Long, maxTokenLifetime: Long, issuer: String, audience: Option[String])
Configuration for authentication middleware
Configuration for authentication middleware
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Error responses for authentication failures
Error responses for authentication failures
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
class InMemoryTokenStore extends TokenStore
In-memory token store for demonstration
In-memory token store for demonstration
Attributes
- Supertypes
case class TokenPayload(sub: String, roles: Set[String], exp: Long, iat: Long, iss: String, aud: Option[String], jti: String)
Enhanced token payload with additional claims
Enhanced token payload with additional claims
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait TokenStore
Token storage and validation trait
Token storage and validation trait
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class InMemoryTokenStore
Value members
Concrete methods
Main authentication middleware
Main authentication middleware
Attributes
Create a new access token
Create a new access token
Attributes
Create a refresh token
Create a refresh token
Attributes
Logout mechanism to revoke tokens
Logout mechanism to revoke tokens
Attributes
Refresh access token
Refresh access token
Attributes
In this article