Class LoginResource
- All Implemented Interfaces:
com.abavilla.fpi.fw.controller.IResource
@Path("/fpi/login")
public class LoginResource
extends com.abavilla.fpi.fw.controller.AbsBaseResource<LoginDto,Session,LoginSvc>
Resource for Login to FPI System
URI Path:
"/fpi/login"- Author:
- Vince Villamora
-
Field Summary
Fields inherited from class com.abavilla.fpi.fw.controller.AbsBaseResource
service -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<SessionDto>login(PasswordLoginDto loginDto, Boolean refreshToken) Endpoint to establish a new login sessionprotected org.jboss.resteasy.reactive.RestResponse<com.abavilla.fpi.fw.dto.impl.RespDto<com.abavilla.fpi.fw.dto.IDto>>mapException(com.abavilla.fpi.fw.exceptions.FPISvcEx x)
-
Constructor Details
-
LoginResource
public LoginResource()
-
-
Method Details
-
login
@POST public io.smallrye.mutiny.Uni<SessionDto> login(PasswordLoginDto loginDto, @QueryParam("refreshToken") Boolean refreshToken) Endpoint to establish a new login session- Parameters:
loginDto- Credentials used for authenticationrefreshToken- Flag to check if login will use a refresh token to refresh an expired access token- Returns:
SessionDtoSession information
-
mapException
protected org.jboss.resteasy.reactive.RestResponse<com.abavilla.fpi.fw.dto.impl.RespDto<com.abavilla.fpi.fw.dto.IDto>> mapException(com.abavilla.fpi.fw.exceptions.FPISvcEx x)
-