App::AuthlyClaimsProvider
Inherits Authly::ClaimsProvider < Reference < Object
Custom Claims Provider - adds user metadata to JWT tokens
Instance methods
enrich_access_token(payload : Authly::JWTPayload, client_id : String, sub : String, scope : String) : Authly::JWTPayload
Called during token generation to enrich the JWT payload
@param payload - The base JWT payload with standard claims (sub, iss, iat, exp, etc.) @param client_id - The OAuth client ID requesting the token @param sub - The subject (typically user ID) @param scope - Space-separated list of granted scopes @return Modified payload hash with additional claims