IdentitySource

Resolves Hanami identities and exact A+ user profiles for an authenticated token.

Profile lookup never falls back to a partial email match. Implementations must reject missing, duplicate, or mismatched email results.

Functions

Link copied to clipboard
abstract suspend fun currentIdentity(token: String): Identity

Returns the account and course roles represented by token.

Link copied to clipboard
abstract suspend fun profile(userId: Long, token: String): UserProfile

Returns the A+ profile identified by userId using the caller's token.

Link copied to clipboard
abstract suspend fun profileByExactEmail(email: String, token: String): UserProfile

Returns the single profile whose email equals email, ignoring letter case.