Class IdTokenLoader
java.lang.Object
com.tremolosecurity.idp.providers.oidc.scalejs.IdTokenLoader
- All Implemented Interfaces:
TokenLoader
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(HttpFilterConfig config, ScaleTokenConfig scaleTokenConfig) Called when the insert is loaded with configuration parametersloadToken
(AuthInfo user, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request) Return an object to be serialized to JSON and sent to the clientrenderTemplate
(String val, Map<String, Object> request)
-
Constructor Details
-
IdTokenLoader
public IdTokenLoader()
-
-
Method Details
-
init
Description copied from interface:TokenLoader
Called when the insert is loaded with configuration parameters- Specified by:
init
in interfaceTokenLoader
- Throws:
Exception
-
renderTemplate
-
loadToken
public Object loadToken(AuthInfo user, jakarta.servlet.http.HttpSession session, jakarta.servlet.http.HttpServletRequest request) throws Exception Description copied from interface:TokenLoader
Return an object to be serialized to JSON and sent to the client- Specified by:
loadToken
in interfaceTokenLoader
- Parameters:
user
- The logged in usersession
- The user's sessionrequest
- The user's request- Returns:
- Object to serialize
- Throws:
Exception
-