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