LeviLamina
Loading...
Searching...
No Matches
IEduSsoStrategy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/certificates/identity/Enum.h"
7#include "mc/certificates/identity/SsoPromptMode.h"
8#include "mc/deps/identity/edu_common/EduResourceType.h"
9#include "mc/platform/Result.h"
10
11// auto generated forward declare list
12// clang-format off
13struct AccessTokenInfo;
14namespace Identity { class IEduAuth; }
15namespace Identity { struct AuthError; }
16namespace Identity { struct AuthToken; }
17namespace Json { class Value; }
18// clang-format on
19
20namespace Identity {
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 // vIndex: 0
27 virtual ~IEduSsoStrategy() = default;
28
29 // vIndex: 1
30 virtual ::Json::Value clientConfig(::Json::Value const&) const = 0;
31
32 // vIndex: 2
33 virtual ::Identity::_TokenRefreshState::Enum
34 refreshToken(::Identity::IEduAuth&, ::AccessTokenInfo const&, int64, ::Identity::EduResourceType, ::std::function<void(::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>)>, ::std::function<void()>) = 0;
35
36 // vIndex: 3
37 virtual void onRefreshedToken(bool, ::Identity::EduResourceType) = 0;
38
39 // vIndex: 4
40 virtual ::Identity::SsoPromptMode
41 signIn(::Identity::IEduAuth&, int64, ::std::function<void()>, ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>) = 0;
42
43 // vIndex: 5
44 virtual void signInSuccess(::std::string const&) = 0;
45
46 // vIndex: 6
47 virtual void demoSignInSuccess() = 0;
48
49 // vIndex: 7
50 virtual void resetAuthentication(::Identity::IEduAuth&, bool) = 0;
51
52 // vIndex: 8
53 virtual bool isDemoConversion() const = 0;
54
55 // vIndex: 9
56 virtual void
57 signInGraph(::Identity::IEduAuth&, ::std::string const&, ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>) = 0;
58 // NOLINTEND
59
60public:
61 // destructor thunk
62 // NOLINTBEGIN
63
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69
70 // NOLINTEND
71};
72
73} // namespace Identity
Definition Result.h:9
Definition IEduAuth.h:19
Definition IEduSsoStrategy.h:22
Definition Value.h:16
Definition AccessTokenInfo.h:5