Class UserClaimSource

  • All Implemented Interfaces:
    edu.uiuc.ncsa.oa4mp.delegation.oa2.OA2Scopes, edu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource, Serializable

    public class UserClaimSource
    extends edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
    implements edu.uiuc.ncsa.oa4mp.delegation.oa2.OA2Scopes
    This actually introspects the user database and does not require an LDAP configuration. Note that it is built into the server config for CILogon and is therefore never really accessed directly.

    Created by Jeff Gaynor
    on 8/20/15 at 1:37 PM

    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface edu.uiuc.ncsa.oa4mp.delegation.oa2.OA2Scopes

        edu.uiuc.ncsa.oa4mp.delegation.oa2.OA2Scopes.ScopeUtil
    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl

        groupHandler
      • Fields inherited from interface edu.uiuc.ncsa.oa4mp.delegation.oa2.OA2Scopes

        basicScopes, EDU_PERSON_ORC_ID, nonPublicScopes, SCOPE_ADDRESS, SCOPE_CILOGON_INFO, SCOPE_EMAIL, SCOPE_MYPROXY, SCOPE_OFFLINE_ACCESS, SCOPE_OPENID, SCOPE_PHONE, SCOPE_PROFILE, SCOPE_TOKEN_MANAGER, SCOPE_USER_INFO
    • Constructor Summary

      Constructors 
      Constructor Description
      UserClaimSource​(edu.uiuc.ncsa.qdl.variables.QDLStem stem)  
      UserClaimSource​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected String convertFromUTF7ToUTF8​(String utf7String)
      ***************************** * KEEP THIS! * * *****************************
      protected net.sf.json.JSONObject getJSONAttributes​(String rawJSON)
      Take the user's json_attr string and convert it into JSON for reference.
      CILogonOA2ServiceEnvironment getServiceEnvironment()  
      boolean isRunOnlyAtAuthorization()  
      net.sf.json.JSONObject process​(net.sf.json.JSONObject claims, edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction)  
      protected net.sf.json.JSONObject realProcessing​(net.sf.json.JSONObject claims, javax.servlet.http.HttpServletRequest request, edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction)  
      edu.uiuc.ncsa.qdl.variables.QDLStem toQDL()  
      • Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl

        fromQDL, getClaims, getConfiguration, getGroupHandler, getOa2SE, getOmitList, getPostProcessor, getPreProcessor, getScopes, hasConfiguration, hasJSONPostProcessor, hasJSONPreProcessor, isEnabled, process, setConfiguration, setGroupHandler, setOa2SE, setOmitList, setScopes
    • Constructor Detail

      • UserClaimSource

        public UserClaimSource​(edu.uiuc.ncsa.qdl.variables.QDLStem stem)
      • UserClaimSource

        public UserClaimSource​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
    • Method Detail

      • convertFromUTF7ToUTF8

        protected String convertFromUTF7ToUTF8​(String utf7String)
        ***************************** * KEEP THIS! * * *****************************
      • process

        public net.sf.json.JSONObject process​(net.sf.json.JSONObject claims,
                                              edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction)
                                       throws edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
        Specified by:
        process in interface edu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
        Overrides:
        process in class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
        Throws:
        edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
      • realProcessing

        protected net.sf.json.JSONObject realProcessing​(net.sf.json.JSONObject claims,
                                                        javax.servlet.http.HttpServletRequest request,
                                                        edu.uiuc.ncsa.oa4mp.delegation.server.ServiceTransaction transaction)
                                                 throws edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
        Overrides:
        realProcessing in class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
        Throws:
        edu.uiuc.ncsa.oa4mp.delegation.oa2.server.UnsupportedScopeException
      • getJSONAttributes

        protected net.sf.json.JSONObject getJSONAttributes​(String rawJSON)
        Take the user's json_attr string and convert it into JSON for reference.
        Parameters:
        rawJSON -
        Returns:
      • toQDL

        public edu.uiuc.ncsa.qdl.variables.QDLStem toQDL()
        Specified by:
        toQDL in interface edu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
        Overrides:
        toQDL in class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl
      • isRunOnlyAtAuthorization

        public boolean isRunOnlyAtAuthorization()
        Specified by:
        isRunOnlyAtAuthorization in interface edu.uiuc.ncsa.oa4mp.delegation.oa2.server.claims.ClaimSource
        Overrides:
        isRunOnlyAtAuthorization in class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.claims.BasicClaimsSourceImpl