Integrating latest from github/staging
Integrating up through commit 5e1bdae
This commit is contained in:
+8
-4
@@ -13,7 +13,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <UserManagement/AWSCognitoUserManagementBus.h>
|
||||
#include <UserManagement/AWSCognitoUserManagementTypes.h>
|
||||
|
||||
namespace AWSClientAuth
|
||||
{
|
||||
@@ -27,7 +26,7 @@ namespace AWSClientAuth
|
||||
virtual ~AWSCognitoUserManagementController();
|
||||
|
||||
// AWSCognitoUserManagementRequestsBus interface methods
|
||||
bool Initialize(const AZStd::string& settingsRegistryPath);
|
||||
bool Initialize() override;
|
||||
void EmailSignUpAsync(const AZStd::string& username, const AZStd::string& password, const AZStd::string& email) override;
|
||||
void PhoneSignUpAsync(const AZStd::string& username, const AZStd::string& password, const AZStd::string& phoneNumber) override;
|
||||
void ConfirmSignUpAsync(const AZStd::string& username, const AZStd::string& confirmationCode) override;
|
||||
@@ -35,8 +34,13 @@ namespace AWSClientAuth
|
||||
void ConfirmForgotPasswordAsync(const AZStd::string& userName, const AZStd::string& confirmationCode, const AZStd::string& newPassword) override;
|
||||
void EnableMFAAsync(const AZStd::string& accessToken) override;
|
||||
|
||||
protected:
|
||||
AZStd::unique_ptr<AWSCognitoUserManagementSetting> m_settings;
|
||||
inline const AZStd::string& GetCognitoAppClientId() const
|
||||
{
|
||||
return m_cognitoAppClientId;
|
||||
}
|
||||
|
||||
private:
|
||||
AZStd::string m_cognitoAppClientId;
|
||||
};
|
||||
|
||||
} // namespace AWSClientAuth
|
||||
|
||||
-50
@@ -1,50 +0,0 @@
|
||||
/*
|
||||
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||
* its licensors.
|
||||
*
|
||||
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||
* distribution (the "License"). All use of this software is governed by the License,
|
||||
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <AzCore/Serialization/EditContext.h>
|
||||
|
||||
namespace AWSClientAuth
|
||||
{
|
||||
|
||||
//! Holds AWS Cognito user management serialized Settings.
|
||||
class AWSCognitoUserManagementSetting
|
||||
{
|
||||
public:
|
||||
AWSCognitoUserManagementSetting() = default;
|
||||
~AWSCognitoUserManagementSetting() = default;
|
||||
|
||||
AZ_TYPE_INFO(AWSCognitoUserManagementSetting, "{58FC34F1-B84B-4677-B986-45A226F0328D}");
|
||||
|
||||
AZStd::string m_appClientId;
|
||||
|
||||
static void Reflect(AZ::SerializeContext& context)
|
||||
{
|
||||
context.Class<AWSCognitoUserManagementSetting>()
|
||||
->Field("AppClientId", &AWSCognitoUserManagementSetting::m_appClientId)
|
||||
;
|
||||
|
||||
AZ::EditContext* editContext = context.GetEditContext();
|
||||
|
||||
if (editContext)
|
||||
{
|
||||
editContext->Class<AWSCognitoUserManagementSetting>("AWSCognitoUserManagementSetting", "AWSCognitoUserManagementSetting Settings")
|
||||
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
||||
->Attribute(AZ::Edit::Attributes::Category, "AWSClientAuth")
|
||||
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
||||
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
|
||||
->DataElement(AZ::Edit::UIHandlers::Default, &AWSCognitoUserManagementSetting::m_appClientId, "ClientId", "Cognito User Pool App Client Id")
|
||||
;
|
||||
}
|
||||
}
|
||||
};
|
||||
} // namespace AWSClientAuth
|
||||
Reference in New Issue
Block a user