userver: server::auth::UserAuthInfo Class Reference
Loading...
Searching...
No Matches
server::auth::UserAuthInfo Class Referencefinal

#include <userver/server/auth/user_auth_info.hpp>

Detailed Description

Authenticated user data attached to a request.

Definition at line 26 of file user_auth_info.hpp.

Public Types

using Ticket = utils::NonLoggable<class TicketTag, std::string>

Public Member Functions

 UserAuthInfo (UserId default_id, UserEnv env, UserProvider provider)
 UserAuthInfo (UserId default_id, Ticket user_ticket, UserEnv env, UserProvider provider)
 UserAuthInfo (UserId default_id, UserIds ids, UserScopes scopes, UserEnv env, UserProvider provider)
 UserAuthInfo (UserId default_id, UserIds ids, UserScopes scopes, Ticket user_ticket, UserEnv env, UserProvider provider)
UserId GetDefaultUserId () const noexcept
const UserIds & GetUserIds () const
const std::optional< UserScopes > & GetUserScopesOptional () const
const std::optional< Ticket > & GetTicketOptional () const
UserEnv GetUserEnv () const
UserProvider GetUserProvider () const

Member Typedef Documentation

◆ Ticket

using server::auth::UserAuthInfo::Ticket = utils::NonLoggable<class TicketTag, std::string>

Definition at line 28 of file user_auth_info.hpp.

Member Function Documentation

◆ GetUserEnv()

UserEnv server::auth::UserAuthInfo::GetUserEnv ( ) const
inline

Definition at line 47 of file user_auth_info.hpp.

◆ GetUserProvider()

UserProvider server::auth::UserAuthInfo::GetUserProvider ( ) const
inline

Definition at line 48 of file user_auth_info.hpp.

◆ server::handlers::auth::AuthCheckerBase

Definition at line 51 of file user_auth_info.hpp.


The documentation for this class was generated from the following file: