Class SsaGetAction
- java.lang.Object
-
- io.jans.as.server.ssa.ws.rs.action.SsaGetAction
-
@Named public class SsaGetAction extends Object
Provides the method to get existing SSAs based on certain conditions.
-
-
Constructor Summary
Constructors Constructor Description SsaGetAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
get(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Get existing active SSA based on "jti" or "org_id".
-
-
-
Method Detail
-
get
public jakarta.ws.rs.core.Response get(String jti, String orgId, jakarta.servlet.http.HttpServletRequest httpRequest)
Get existing active SSA based on "jti" or "org_id".Method will return a
WebApplicationException
with status401
if this functionality is not enabled, request has to have at least scope "ssa.admin" or "ssa.portal", it will also return aWebApplicationException
with status500
in case an uncontrolled error occurs when processing the method.Response of this method can be modified using the following custom script SSA Custom Script, method get.
Method also performs the search based on the scope, if the scope is "ssa.admin" it is based on all SSA records, but if the scope is "ssa.portal", then it only returns the SSA list corresponding to the same org.
- Parameters:
jti
- Unique identifierorgId
- Organization IDhttpRequest
- Http request- Returns:
Response
with status200 (Ok)
and the body containing the list of SSAs.
-
-