5 #ifndef AUTHENTICATIONREALM_H 6 #define AUTHENTICATIONREALM_H 8 #include <Cutelyst/Plugins/Authentication/authenticationuser.h> 9 #include <Cutelyst/component.h> 14 class AuthenticationStore;
15 class AuthenticationCredential;
29 class CUTELYST_PLUGIN_AUTHENTICATION_EXPORT AuthenticationRealm :
public Component
43 std::shared_ptr<AuthenticationCredential> credential,
51 [[nodiscard]] std::shared_ptr<AuthenticationStore> store() const noexcept;
73 void removePersistedUser(
Context *c);
92 friend class AuthenticationPrivate;
100 #endif // AUTHENTICATIONREALM_H Main class to manage user authentication.
Abstract class to validate authentication credentials like user name and password.
Combines user store and credential validation into a named realm.
Abstract class to retrieve user data from a store.
The Cutelyst namespace holds all public Cutelyst API.
Container for user data retrieved from an AuthenticationStore.