AWSClientAuthEditorSystemComponent.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <Authorization/AWSCognitoAuthorizationController.h>
  11. #include <Authentication/AuthenticationProviderManager.h>
  12. #include <UserManagement/AWSCognitoUserManagementController.h>
  13. #include <AWSClientAuthBus.h>
  14. #include <AWSCoreBus.h>
  15. #include <AWSClientAuthSystemComponent.h>
  16. #include <AzToolsFramework/ActionManager/ActionManagerRegistrationNotificationBus.h>
  17. namespace AWSClientAuth
  18. {
  19. //! Gem System Component. Responsible for instantiating and managing Authentication and Authorization Controller
  20. class AWSClientAuthEditorSystemComponent
  21. : public AZ::Component
  22. , private AzToolsFramework::ActionManagerRegistrationNotificationBus::Handler
  23. {
  24. public:
  25. ~AWSClientAuthEditorSystemComponent() override = default;
  26. AZ_COMPONENT(AWSClientAuthEditorSystemComponent, "{4483B6C0-6D9C-425A-B6D8-21AA54561937}");
  27. static void Reflect(AZ::ReflectContext* context);
  28. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  29. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  30. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  31. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType&);
  32. protected:
  33. // AZ::Component interface implementation
  34. void Activate() override;
  35. void Deactivate() override;
  36. // ActionManagerRegistrationNotificationBus implementation
  37. void OnMenuBindingHook() override;
  38. };
  39. } // namespace AWSClientAuth