Package com.bytedesk.core.rbac.auth
Class AuthService
java.lang.Object
com.bytedesk.core.rbac.auth.AuthService
https://www.baeldung.com/get-user-in-spring-security
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JwtUtils
private org.modelmapper.ModelMapper
private UserDetailsServiceImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationWithEmailAndPlatform
(String email, String platform) authenticationWithMobileAndPlatform
(String mobile, String platform) formatResponse
(org.springframework.security.core.Authentication authentication) org.springframework.security.authentication.UsernamePasswordAuthenticationToken
getAuthentication
(jakarta.servlet.http.HttpServletRequest request, String subject) getUser()
-
Field Details
-
jwtUtils
-
userDetailsService
-
modelMapper
private org.modelmapper.ModelMapper modelMapper
-
-
Constructor Details
-
AuthService
public AuthService()
-
-
Method Details
-
getUser
-
getAuthentication
public org.springframework.security.authentication.UsernamePasswordAuthenticationToken getAuthentication(@NonNull jakarta.servlet.http.HttpServletRequest request, String subject) -
authenticationWithMobileAndPlatform
-
authenticationWithEmailAndPlatform
-
formatResponse
-