Package doist.ffs.auth
Types
Link copied to clipboard
data class Access(resource: Resource, permissions: Collection<Permission>)
Content copied to clipboard
Link copied to clipboard
An authenticated access to specific resources/permissions.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Represents a Bearer authentication provider. Based on io.ktor.server.auth.BasicAuthenticationProvider.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class TokenPrincipal(projectId: Long, permission: Permission) : AccessPrincipal
Content copied to clipboard
An authenticated API access.
Link copied to clipboard
data class UserPrincipal(id: Long, organizationPermissions: Map<Long, Collection<Permission>>, projectPermissions: Map<Long, Collection<Permission>>) : AccessPrincipal
Content copied to clipboard
An authenticated user.
Functions
Link copied to clipboard
fun Authentication.Configuration.bearer(name: String? = null, configure: BearerAuthenticationProvider.Configuration.() -> Unit)
Content copied to clipboard
Installs Bearer Authentication mechanism.
Link copied to clipboard
fun ApplicationRequest.bearerAuthenticationCredentials(): BearerCredential?
Content copied to clipboard
Retrieves Bearer authentication credentials for this ApplicationRequest.