Class SAMLAttributeClaimSource
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
- org.cilogon.oauth2.servlet.claims.SAMLAttributeClaimSource
-
- All Implemented Interfaces:
Serializable,org.oa4mp.delegation.server.server.claims.ClaimSource
- Direct Known Subclasses:
SAMLAttrbuteClaimSource
public class SAMLAttributeClaimSource extends org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImplThis will read SAML attributes that are sent in the header from the IDP then stored in an attribute that is sent. At the right time, this attribute is read and parsed into information about the user and returned as a set of claims. NOTE that this is created by introspection (hence the no arg constructor) and hence never seems to be used in the code base. Several clients, however, require it.Created by Jeff Gaynor
on 7/10/18 at 8:15 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSHIBBOLETH_LIST_DELIMITERstatic StringSHIBBOLETH_MEMBER_OF_KEY
-
Constructor Summary
Constructors Constructor Description SAMLAttributeClaimSource()SAMLAttributeClaimSource(org.oa4mp.server.loader.oauth2.OA2SE oa2SE)SAMLAttributeClaimSource(org.qdl_lang.variables.QDLStem stem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisRunOnlyAtAuthorization()static voidmain(String[] arg)protected net.sf.json.JSONObjectoldProcess(net.sf.json.JSONObject claims, org.oa4mp.delegation.server.ServiceTransaction transaction)As of next release (4.1) we should be getting SAML attributes that have been parsed into JSON, so we do not need to do the parsing ourselves.net.sf.json.JSONObjectprocess(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, org.oa4mp.delegation.server.ServiceTransaction transaction)net.sf.json.JSONObjectprocess(net.sf.json.JSONObject claims, org.oa4mp.delegation.server.ServiceTransaction transaction)protected static voidtest1()protected static voidtest2()org.qdl_lang.variables.QDLStemtoQDL()StringtoString()-
Methods inherited from class org.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
addToStem, fromQDL, getClaims, getConfiguration, getGroupHandler, getOa2SE, getOmitList, getScopes, hasConfiguration, isEnabled, realProcessing, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes
-
-
-
-
Field Detail
-
SHIBBOLETH_MEMBER_OF_KEY
public static final String SHIBBOLETH_MEMBER_OF_KEY
- See Also:
- Constant Field Values
-
SHIBBOLETH_LIST_DELIMITER
public static String SHIBBOLETH_LIST_DELIMITER
-
-
Method Detail
-
process
public net.sf.json.JSONObject process(net.sf.json.JSONObject claims, org.oa4mp.delegation.server.ServiceTransaction transaction) throws org.oa4mp.delegation.server.server.UnsupportedScopeException- Specified by:
processin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
processin classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl- Throws:
org.oa4mp.delegation.server.server.UnsupportedScopeException
-
oldProcess
protected net.sf.json.JSONObject oldProcess(net.sf.json.JSONObject claims, org.oa4mp.delegation.server.ServiceTransaction transaction) throws org.oa4mp.delegation.server.server.UnsupportedScopeExceptionAs of next release (4.1) we should be getting SAML attributes that have been parsed into JSON, so we do not need to do the parsing ourselves. Note that these attributes have been sent over out of band and stashed in aUserattribute namedUser.getAttr_json(), since the assumption is that this servlet is access through Apache (or some other web server) and therefore cannot have direct access to the secure headers.- Parameters:
claims-transaction-- Returns:
- Throws:
org.oa4mp.delegation.server.server.UnsupportedScopeException
-
process
public net.sf.json.JSONObject process(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, org.oa4mp.delegation.server.ServiceTransaction transaction) throws org.oa4mp.delegation.server.server.UnsupportedScopeException- Specified by:
processin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
processin classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl- Throws:
org.oa4mp.delegation.server.server.UnsupportedScopeException
-
isRunOnlyAtAuthorization
public boolean isRunOnlyAtAuthorization()
- Specified by:
isRunOnlyAtAuthorizationin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
isRunOnlyAtAuthorizationin classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
main
public static void main(String[] arg)
-
toQDL
public org.qdl_lang.variables.QDLStem toQDL()
- Specified by:
toQDLin interfaceorg.oa4mp.delegation.server.server.claims.ClaimSource- Overrides:
toQDLin classorg.oa4mp.server.loader.oauth2.claims.BasicClaimsSourceImpl
-
-