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
20class IEduAuth : public ::Bedrock::EnableNonOwnerReferences {
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 virtual ~IEduAuth() /*override*/ = default;
38
39 virtual void Authenticate(
41 ::std::function<void()>,
42 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
43 ) = 0;
44
45 virtual void resetAuthenticationState() = 0;
46
47 virtual void clearCookies() = 0;
48
49 virtual void signOut(::std::string_view, ::std::function<void(::Identity::SignOutResult)>) = 0;
50
51 virtual void authenticateSilently(
52 ::std::string_view,
53 ::std::string const&,
55 ) = 0;
56
57 virtual void authenticateSilentlyCredentialed();
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCNAPI ::Identity::EduAuthTokenPair getTokens() const;
64
65 MCNAPI_S bool hasValidMessToken() const;
66
67 MCNAPI_C void setTokens(::Identity::EduAuthTokenPair tokens);
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73
74 // NOLINTEND
75};
76
77} // namespace Identity
Definition EnableNonOwnerReferences.h:7
Definition Result.h:9
MCAPI::Identity::EduAuthTokenPair getTokens() const
Definition AuthArgs.h:7
Definition AuthError.h:7
Definition AuthToken.h:7
Definition EduAuthTokenPair.h:7
Definition SignOutResult.h:7
Definition Alias.h:14