LeviLamina
Loading...
Searching...
No Matches
EduSso.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/IEduSsoStrategy.h"
8#include "mc/certificates/identity/SsoPromptMode.h"
9#include "mc/deps/identity/edu_common/EduResourceType.h"
10#include "mc/platform/Result.h"
11
12// auto generated forward declare list
13// clang-format off
14struct AccessTokenInfo;
15namespace Identity { class IEduAuth; }
16namespace Identity { struct AuthError; }
17namespace Identity { struct AuthToken; }
18namespace Json { class Value; }
19// clang-format on
20
21namespace Identity::Strategies {
22
24public:
25 // member variables
26 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 EduSso& operator=(EduSso const&);
35 EduSso(EduSso const&);
36 EduSso();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual ::Json::Value clientConfig(::Json::Value const&) const /*override*/;
43
44 // vIndex: 2
45 virtual ::Identity::_TokenRefreshState::Enum refreshToken(
47 ::AccessTokenInfo const&,
48 int64,
49 ::Identity::EduResourceType,
51 ::std::function<void()>
52 ) /*override*/;
53
54 // vIndex: 3
55 virtual void onRefreshedToken(bool, ::Identity::EduResourceType) /*override*/;
56
57 // vIndex: 4
58 virtual ::Identity::SsoPromptMode signIn(
60 int64,
61 ::std::function<void()>,
62 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
63 ) /*override*/;
64
65 // vIndex: 5
66 virtual void signInSuccess(::std::string const&) /*override*/;
67
68 // vIndex: 6
69 virtual void demoSignInSuccess() /*override*/;
70
71 // vIndex: 7
72 virtual void resetAuthentication(::Identity::IEduAuth&, bool) /*override*/;
73
74 // vIndex: 8
75 virtual bool isDemoConversion() const /*override*/;
76
77 // vIndex: 9
78 virtual void signInGraph(
80 ::std::string const&,
81 ::std::function<void(::std::optional<::Bedrock::Result<::Identity::AuthToken, ::Identity::AuthError>>)>
82 ) /*override*/;
83
84 // vIndex: 0
85 virtual ~EduSso() /*override*/ = default;
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91
92 // NOLINTEND
93};
94
95} // namespace Identity::Strategies
Definition Result.h:9
Definition IEduAuth.h:19
Definition IEduSsoStrategy.h:22
Definition EduSso.h:23
Definition Value.h:16
Definition AccessTokenInfo.h:5
Definition Alias.h:14