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/platform/Result.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace Identity { struct AuthArgs; }
11namespace Identity { struct AuthError; }
12namespace Identity { struct AuthToken; }
13namespace Identity { struct EduAuthTokenPair; }
14namespace Identity { struct SignOutResult; }
15// clang-format on
16
17namespace Identity {
18
19class IEduAuth {
20public:
21 // member variables
22 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 IEduAuth& operator=(IEduAuth const&);
29 IEduAuth(IEduAuth const&);
30 IEduAuth();
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ~IEduAuth() = default;
37
38 // vIndex: 1
39 virtual void Authenticate(
41 ::std::function<void()>,
42 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
43 ) = 0;
44
45 // vIndex: 2
46 virtual void resetAuthenticationState() = 0;
47
48 // vIndex: 3
49 virtual void clearCookies() = 0;
50
51 // vIndex: 4
52 virtual void signOut(::std::string_view, ::std::function<void(::Identity::SignOutResult)>) = 0;
53
54 // vIndex: 5
55 virtual void authenticateSilently(
56 ::std::string_view,
57 ::std::string const&,
59 ) = 0;
60
61 // vIndex: 6
62 virtual void authenticateSilentlyCredentialed();
63 // NOLINTEND
64
65public:
66 // member functions
67 // NOLINTBEGIN
68 MCNAPI ::Identity::EduAuthTokenPair getHostTokens() const;
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74
75 // NOLINTEND
76};
77
78} // namespace Identity
Definition Result.h:9
Definition IEduAuth.h:19
MCAPI::Identity::EduAuthTokenPair getHostTokens() const
Definition AuthArgs.h:7
Definition SignOutResult.h:7
Definition Alias.h:14