Class FeignHTTPAuthorizationServiceFacade

  • All Implemented Interfaces:
    ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade

    @Component
    public class FeignHTTPAuthorizationServiceFacade
    extends Object
    implements ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse emailAuthorization​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.EmailAuthorizationRequest command)  
      void logout​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.LogoutRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse phoneNumberAuthorization​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.PhoneNumberAuthorizationRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse refreshToken​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.RefreshTokenRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse signUpConfirmationByEmail​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpConfirmationByEmailRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse signUpConfirmationByPhoneNumber​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpConfirmationByPhoneNumberRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.ConfirmationCodeTimerResponse singUpByEmail​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpByEmailRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.ConfirmationCodeTimerResponse singUpByPhoneNumber​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpByPhoneNumberRequest command)  
      ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse usernameAuthorization​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.UsernameAuthorizationRequest command)  
    • Constructor Detail

      • FeignHTTPAuthorizationServiceFacade

        public FeignHTTPAuthorizationServiceFacade()
    • Method Detail

      • usernameAuthorization

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse usernameAuthorization​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.UsernameAuthorizationRequest command)
                                                                                                                            throws ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException,
                                                                                                                                   ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.BadCredentialsExceptions
        Specified by:
        usernameAuthorization in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
        Throws:
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.BadCredentialsExceptions
      • singUpByPhoneNumber

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.ConfirmationCodeTimerResponse singUpByPhoneNumber​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpByPhoneNumberRequest command)
        Specified by:
        singUpByPhoneNumber in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
      • singUpByEmail

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.ConfirmationCodeTimerResponse singUpByEmail​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpByEmailRequest command)
        Specified by:
        singUpByEmail in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
      • signUpConfirmationByPhoneNumber

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse signUpConfirmationByPhoneNumber​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpConfirmationByPhoneNumberRequest command)
        Specified by:
        signUpConfirmationByPhoneNumber in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
      • signUpConfirmationByEmail

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse signUpConfirmationByEmail​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.SignUpConfirmationByEmailRequest command)
        Specified by:
        signUpConfirmationByEmail in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
      • phoneNumberAuthorization

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse phoneNumberAuthorization​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.PhoneNumberAuthorizationRequest command)
                                                                                                                               throws ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException,
                                                                                                                                      ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.BadCredentialsExceptions
        Specified by:
        phoneNumberAuthorization in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
        Throws:
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.BadCredentialsExceptions
      • emailAuthorization

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse emailAuthorization​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.EmailAuthorizationRequest command)
                                                                                                                         throws ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException,
                                                                                                                                ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.BadCredentialsExceptions
        Specified by:
        emailAuthorization in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
        Throws:
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.BadCredentialsExceptions
      • refreshToken

        public ru.foodtechlab.lib.auth.service.facade.authorization.dto.responses.BasicAuthorizationResponse refreshToken​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.RefreshTokenRequest command)
                                                                                                                   throws ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException
        Specified by:
        refreshToken in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
        Throws:
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException
      • logout

        public void logout​(ru.foodtechlab.lib.auth.service.facade.authorization.dto.requests.LogoutRequest command)
                    throws ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException
        Specified by:
        logout in interface ru.foodtechlab.lib.auth.integration.core.authorizartion.AuthorizationServiceFacade
        Throws:
        ru.foodtechlab.lib.auth.integration.core.authorizartion.exception.AuthServiceException