Pika::Auth::Strategies::BearerToken
Inherits Pika::Auth::Strategy < Reference < Object
Bearer token authentication.
Reads the token from the Authorization header: Authorization: Bearer <token>
The validator block receives the raw token string and must return true to allow the request.
Constructors
Instance methods
Authenticate the request. Raises Pika::UnauthorizedError if auth fails.
Extract the credential from the request (token, key, decoded basic string, etc.). Returns nil if the credential is absent.