60 ActiveDirectoryIdentity& operator=(ActiveDirectoryIdentity
const&);
61 ActiveDirectoryIdentity(ActiveDirectoryIdentity
const&);
62 ActiveDirectoryIdentity();
68 virtual ~ActiveDirectoryIdentity() =
default;
70 virtual ~ActiveDirectoryIdentity() ;
79 MCNAPI ActiveDirectoryIdentity(
80 ::Bedrock::NotNullNonOwnerPtr<::IEDUSystems> eduSystems,
84 MCNAPI ActiveDirectoryIdentity(
86 ::std::optional<::EducationServicesEnvironment> environment,
87 ::std::unique_ptr<::IActiveDirectoryIdentityTelemetry>&& eventing,
88 ::std::unique_ptr<::Identity::ISettingStorageStrategy>&& settings,
89 ::std::unique_ptr<::Identity::IEduSsoStrategy>&& sso,
91 ::std::unique_ptr<::ResponseVerifier> verifier,
92 ::std::string appSessionId
95 MCNAPI
void _authenticateDemoWithService();
97 MCNAPI
void _authenticateSignInWithService();
101 MCNAPI
void _identityGained();
103 MCNAPI
void _identityLost();
105 MCNAPI
void _onError(
106 ::std::string
const& error,
107 ::ActiveDirectoryAuthenticationState newState,
108 ::std::vector<::std::pair<::std::string, ::std::string>> details
111 MCNAPI
void _onStatusChanged(::ActiveDirectoryAuthenticationState from, ::ActiveDirectoryAuthenticationState to);
113 MCNAPI ::AccessTokenInfo _parseTokenInfo(::std::string
const& tokenToParse)
const;
117 MCNAPI
void _signInCanceled();
119 MCNAPI
void _updateData(
124 MCNAPI
void _updateGraphData(
131 MCNAPI
void fireCodeBuilderLoadPerformanceEvent(::CodeBuilderPerformance::Stage stage)
const;
135 MCNAPI ::std::string
const& getAADIdentityToken()
const;
137 MCNAPI ::ActiveDirectoryAuthenticationState getAuthenticationState()
const;
139 MCNAPI
void getDemo();
141 MCNAPI ::std::shared_ptr<::Identity::IEduAuth> getEduAuth()
const;
143 MCNAPI ::std::string
const& getEmail()
const;
145 MCNAPI ::std::optional<::Identity::AuthToken> getGraphToken()
const;
147 MCNAPI
void getIdentity();
149 MCNAPI ::std::string
const& getName()
const;
151 MCNAPI ::std::string
const& getNickname()
const;
153 MCNAPI ::std::string
const& getOid()
const;
155 MCNAPI ::std::optional<::ActiveDirectoryPopup>
const getPopup()
const;
157 MCNAPI ::edu::Role getRole()
const;
159 MCNAPI ::std::string
const& getTenantId()
const;
161 MCNAPI ::std::string
const& getTenantType()
const;
163 MCNAPI
void initialPackRequest(::std::function<
void(::std::vector<::ServicePack>)> packReturnCallback);
165 MCNAPI
bool isDemo()
const;
167 MCNAPI
void resetAuthenticationState();
169 MCNAPI
void setAuthenticationStateComplete();
171 MCNAPI
void setAuthenticationStateDemo();
173 MCNAPI
void setAuthenticationStateOfferPurchase();
175 MCNAPI
void setEulaAccepted();
177 MCNAPI
void setLastClickedSource(::LastClickedSource buttonName);
179 MCNAPI
void setPurchaseReceipt(::std::string
const& receipt, ::std::function<
void(
bool)>
const& callback);
191 MCNAPI static ::std::string
const getPublicKeysEndpoint();
193 MCNAPI static ::std::string
const& getServiceEndpoint();
222 ::Bedrock::NotNullNonOwnerPtr<::IEDUSystems> eduSystems,
228 ::std::optional<::EducationServicesEnvironment> environment,
229 ::std::unique_ptr<::IActiveDirectoryIdentityTelemetry>&& eventing,
230 ::std::unique_ptr<::Identity::ISettingStorageStrategy>&& settings,
231 ::std::unique_ptr<::Identity::IEduSsoStrategy>&& sso,
233 ::std::unique_ptr<::ResponseVerifier> verifier,
234 ::std::string appSessionId