LeviLamina
Loading...
Searching...
No Matches
IEduAuth.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/platform/Result.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace Identity { struct AuthError; }
12namespace Identity { struct AuthToken; }
13namespace Identity { struct EduAuthTokenPair; }
14namespace Identity { struct AuthArgs; }
15namespace Identity { struct SignOutResult; }
16// clang-format on
17
18namespace Identity {
19
20class IEduAuth : public ::Bedrock::EnableNonOwnerReferences {
21public:
22 // member variables
23 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 IEduAuth& operator=(IEduAuth const&);
34 IEduAuth(IEduAuth const&);
35 IEduAuth();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~IEduAuth() /*override*/ = default;
41
42 virtual void Authenticate(
44 ::std::function<void()>,
45 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
46 ) = 0;
47
48 virtual void resetAuthenticationState() = 0;
49
50 virtual void clearCookies() = 0;
51
52 virtual void signOut(::std::string_view, ::std::function<void(::Identity::SignOutResult)>) = 0;
53
54 virtual void authenticateSilently(
55 ::std::string_view,
56 ::std::string const&,
58 ) = 0;
59
60 virtual void authenticateSilentlyCredentialed();
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66#ifdef LL_PLAT_C
67 MCNAPI void resetEduToken();
68
69 MCNAPI void setTokens(::Identity::EduAuthTokenPair tokens);
70#endif
71 // NOLINTEND
72};
73
74} // namespace Identity
Definition EnableNonOwnerReferences.h:7
Definition Result.h:9
Definition AuthArgs.h:7
Definition AuthError.h:7
Definition AuthToken.h:7
Definition EduAuthTokenPair.h:7
Definition SignOutResult.h:7
Definition Alias.h:14