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
40 Authenticate(::Identity::AuthArgs const&, ::std::function<void()>, ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>) = 0;
41
42 // vIndex: 2
43 virtual void resetAuthenticationState() = 0;
44
45 // vIndex: 3
46 virtual void clearCookies() = 0;
47
48 // vIndex: 4
49 virtual void signOut(::std::string_view, ::std::function<void(::Identity::SignOutResult)>) = 0;
50
51 // vIndex: 5
52 virtual void
53 authenticateSilently(::std::string_view, ::std::string const&, ::std::function<void(::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>)>) = 0;
54
55 // vIndex: 6
56 virtual void authenticateSilentlyCredentialed();
57
58 // vIndex: 7
59 virtual void setAppSessionId(::std::string const&);
60 // NOLINTEND
61
62public:
63 // member functions
64 // NOLINTBEGIN
65 MCAPI ::Identity::EduAuthTokenPair getTenantTokens(::std::string tenantID) const;
66 // NOLINTEND
67
68public:
69 // destructor thunk
70 // NOLINTBEGIN
71
72 // NOLINTEND
73
74public:
75 // virtual function thunks
76 // NOLINTBEGIN
77
78 // NOLINTEND
79};
80
81} // namespace Identity
Definition Result.h:9
Definition IEduAuth.h:19
Definition AuthArgs.h:7
Definition SignOutResult.h:7
Definition Alias.h:14