java.lang.Object
ru.foodtechlab.lib.auth.integration.proxy.api.security.v1.controllers.SecurityProxyApiController
All Implemented Interfaces:
ru.foodtechlab.lib.auth.service.facade.security.endpoints.CheckAccessEndpoint, ru.foodtechlab.lib.auth.service.facade.security.endpoints.CheckTokenEndpoint, ru.foodtechlab.lib.auth.service.facade.security.endpoints.CurrentUserEndpoint, ru.foodtechlab.lib.auth.service.facade.security.resources.SecurityResource

public class SecurityProxyApiController extends Object implements ru.foodtechlab.lib.auth.service.facade.security.resources.SecurityResource
  • Constructor Details

    • SecurityProxyApiController

      public SecurityProxyApiController()
  • Method Details

    • checkAccess

      @PostMapping(value="/not-secure/api/v1/auth/check-token", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.security.model.CredentialDetails> checkAccess(ru.foodtechlab.lib.auth.service.facade.roleAccess.dto.requests.CheckAccessByTokenRequest request)
      Specified by:
      checkAccess in interface ru.foodtechlab.lib.auth.service.facade.security.endpoints.CheckAccessEndpoint
    • checkToken

      @PostMapping(value="/not-secure/api/v1/auth/access-check", produces="application/json") public com.rcore.rest.api.commons.response.OkApiResponse checkToken(String token)
      Specified by:
      checkToken in interface ru.foodtechlab.lib.auth.service.facade.security.endpoints.CheckTokenEndpoint
    • getCurrentUserByToken

      @GetMapping(value="/not-secure/api/v1/security/current-user", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.security.model.CredentialDetails> getCurrentUserByToken(String token)
      Specified by:
      getCurrentUserByToken in interface ru.foodtechlab.lib.auth.service.facade.security.endpoints.CurrentUserEndpoint