Interface HvlAuthzSessionRestService
- All Known Implementing Classes:
HvlAuthzSessionRestController
@Validated
@HvlPublicFeignRestService
@FeignClient(name="authzSessionPublicRestService",
path="${hvl.oauth.authz.support.service.session.path:/session}",
url="${hvl.oauth.authz.support.service.session.url:${hvl.oauth.authz.service.url}}")
public interface HvlAuthzSessionRestService
A restful service which provides specific methods for session.
-
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthSessionModel> fillWithAuthority
(@NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) The method fills session with acquired roles of profile.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlOAuthUserInfoDataModel> getUserInfo
(@NotNull HvlOAuthUserInfoPredicateModel userInfoPredicateModel) Gets current user info.
-
Method Details
-
fillWithAuthority
@PostMapping(path="/fill-with-authority", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthSessionModel> fillWithAuthority(@NotNull @Valid @RequestBody @NotNull @Valid HvlOAuthProfileAcquiredRolePredicateModel profileAcquiredRolePredicateModel) throws HvlAuthzSessionServiceException The method fills session with acquired roles of profile.- Parameters:
profileAcquiredRolePredicateModel
- the profile acquired role predicate model- Returns:
- the hvl response
- Throws:
HvlAuthzSessionServiceException
- the hvl session service exception
-
getUserInfo
@GetMapping(path="/user-info", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlOAuthUserInfoDataModel> getUserInfo(@NotNull @NotNull HvlOAuthUserInfoPredicateModel userInfoPredicateModel) Gets current user info.- Parameters:
userInfoPredicateModel
- the user info predicate model- Returns:
- the hvl response
-