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 refreshToken(
35 ::AccessTokenInfo const&,
36 int64,
37 ::Identity::EduResourceType,
39 ::std::function<void()>
40 ) = 0;
41
42 // vIndex: 3
43 virtual void onRefreshedToken(bool, ::Identity::EduResourceType) = 0;
44
45 // vIndex: 4
46 virtual ::Identity::SsoPromptMode signIn(
48 int64,
49 ::std::function<void()>,
50 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
51 ) = 0;
52
53 // vIndex: 5
54 virtual void signInSuccess(::std::string const&) = 0;
55
56 // vIndex: 6
57 virtual void demoSignInSuccess() = 0;
58
59 // vIndex: 7
60 virtual void resetAuthentication(::Identity::IEduAuth&, bool) = 0;
61
62 // vIndex: 8
63 virtual bool isDemoConversion() const = 0;
64
65 // vIndex: 9
66 virtual void signInGraph(
68 ::std::string const&,
69 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
70 ) = 0;
71 // NOLINTEND
72
73public:
74 // virtual function thunks
75 // NOLINTBEGIN
76
77 // NOLINTEND
78};
79
80} // namespace Identity
Definition Result.h:9
Definition IEduAuth.h:19
Definition IEduSsoStrategy.h:22
Definition Value.h:16
Definition AccessTokenInfo.h:5