Interface FeignCheckAccessServiceClient

  • All Superinterfaces:
    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

    @FeignClient(name="feign-auth-service-check-access",
                 url="${foodtechlab.infrastructure.microservice.auth-service.url}",
                 configuration=FeignCheckAccessServiceConfig.class)
    public interface FeignCheckAccessServiceClient
    extends ru.foodtechlab.lib.auth.service.facade.security.resources.SecurityResource
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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)  
      com.rcore.rest.api.commons.response.OkApiResponse checkToken​(String token)  
      com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.security.model.CredentialDetails> getCurrentUserByToken​(String token)  
    • Method Detail

      • checkAccess

        @PostMapping("/not-secure/api/v1/auth/access-check")
        com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.security.model.CredentialDetails> checkAccess​(@RequestBody
                                                                                                                              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("/not-secure/api/v1/auth/check-token")
        com.rcore.rest.api.commons.response.OkApiResponse checkToken​(@RequestParam("token")
                                                                     String token)
        Specified by:
        checkToken in interface ru.foodtechlab.lib.auth.service.facade.security.endpoints.CheckTokenEndpoint
      • getCurrentUserByToken

        @GetMapping("/not-secure/api/v1/security/current-user")
        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