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
Modifier and TypeMethodDescriptioncom.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.OkApiResponsecheckToken(String token) com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.security.model.CredentialDetails>getCurrentUserByToken(String token)
-
Method Details
-
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:
checkAccessin interfaceru.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:
checkTokenin interfaceru.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:
getCurrentUserByTokenin interfaceru.foodtechlab.lib.auth.service.facade.security.endpoints.CurrentUserEndpoint
-