Class SessionAuthService
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.auth.RoleService
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.auth.TokenSettings
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.auth.SessionAuthService
-
- All Implemented Interfaces:
AuthService
public class SessionAuthService extends TokenSettings implements AuthService
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSER_ATTRIBUTE_NAME-
Fields inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.auth.TokenSettings
tokenSecret, tokenTimeout
-
Fields inherited from interface org.odpi.openmetadata.userinterface.uichassis.springboot.auth.AuthService
AUTH_HEADER_NAME
-
-
Constructor Summary
Constructors Constructor Description SessionAuthService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)Add the authentication on the response after performs other operations like persistence server sideorg.springframework.security.core.AuthenticationgetAuthentication(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.auth.TokenSettings
getTokenTimeout
-
Methods inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.auth.RoleService
extractUserAppRoles
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.odpi.openmetadata.userinterface.uichassis.springboot.auth.AuthService
createTokenForUser, extractUserAppRoles, fromJSON, getTokenTimeout, getTokenUser, parseUserFromToken, toJSON
-
-
-
-
Field Detail
-
USER_ATTRIBUTE_NAME
public static final String USER_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
addAuthentication
public void addAuthentication(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)Description copied from interface:AuthServiceAdd the authentication on the response after performs other operations like persistence server side- Specified by:
addAuthenticationin interfaceAuthService- Parameters:
request- the http requestresponse- the http responseauthentication- the authentication
-
getAuthentication
public org.springframework.security.core.Authentication getAuthentication(javax.servlet.http.HttpServletRequest request)
- Specified by:
getAuthenticationin interfaceAuthService
-
-