Class SecurityProxyApiController
- 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 Summary
Constructors Constructor Description SecurityProxyApiController()
-
Method Summary
All Methods Instance Methods Concrete 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.OkApiResponsecheckToken(String token)com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.security.model.CredentialDetails>getCurrentUserByToken(String token)
-
-
-
Method Detail
-
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:
checkAccessin interfaceru.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:
checkTokenin interfaceru.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:
getCurrentUserByTokenin interfaceru.foodtechlab.lib.auth.service.facade.security.endpoints.CurrentUserEndpoint
-
-