コード例 #1
0
        public override ID_Claim Process_SignInIdP_req(SignInIdP_Req req1)
        {
            AuthenticationRequest req = (AuthenticationRequest)req1;

            switch (req.mode)
            {
                case "checkid_setup":
                    IDAssertionEntry entry = (IDAssertionEntry)IDAssertionRecs.getEntry(req.IdPSessionSecret, req.realm);
                    if (req.realm == entry.Redir_dest)
                        return entry;
                    return null;
            }

            return null;
        }
コード例 #2
0
        public virtual SignInIdP_Resp_SignInRP_Req SignInIdP(SignInIdP_Req req)
        {
            GlobalObjects_base.SignInIdP_Req = req;

            if (req == null)
            {
                return(null);
            }
            ID_Claim _ID_Claim = Process_SignInIdP_req(req);

            if (IdentityRecords.setEntry(req.IdPSessionSecret, req.Realm, _ID_Claim) == false)
            {
                return(null);
            }
            return(Redir(_ID_Claim.Redir_dest, _ID_Claim));
        }
コード例 #3
0
 public abstract ID_Claim Process_SignInIdP_req(SignInIdP_Req req);
コード例 #4
0
 public abstract ID_Claim Process_SignInIdP_req(SignInIdP_Req req);
コード例 #5
0
        public virtual SignInIdP_Resp_SignInRP_Req SignInIdP(SignInIdP_Req req)
        {
            GlobalObjects_base.SignInIdP_Req = req;

            if (req == null) return null;
            ID_Claim _ID_Claim = Process_SignInIdP_req(req);
            if (IdentityRecords.setEntry(req.IdPSessionSecret, req.Realm, _ID_Claim) == false)
                return null;
            return Redir(_ID_Claim.Redir_dest, _ID_Claim);
        }
コード例 #6
0
        public override SignInIdP_Resp_SignInRP_Req SignInIdP(SignInIdP_Req req1)
        {
            AuthenticationRequest req = (AuthenticationRequest)req1;
            Contract.Assume(GlobalObjects_base.SignInIdP_Req.IdPSessionSecret == req.IdPSessionSecret);

            if (req == null) return null;
            ID_Claim _ID_Claim = Process_SignInIdP_req(req);
            if (_ID_Claim == null) return null;

            AuthenticationResponse resp = (AuthenticationResponse)Redir(_ID_Claim.Redir_dest, _ID_Claim);

            resp.realm = req.realm;
            resp.identity = req.identity;
            resp.ns = req.ns;
            resp.mode = req.mode;

            CST_Ops.recordme(this, req, resp, true, false);

            return resp;
        }
コード例 #7
0
 public override ID_Claim Process_SignInIdP_req(SignInIdP_Req req1)
 {
     AuthorizationRequest req = (AuthorizationRequest)req1;
     switch (req.response_type)
     {
         case "code":
             return createAuthorizationCodeEntry(req);                   
         default:
             return null;
     }
 }
コード例 #8
0
        public override SignInIdP_Resp_SignInRP_Req SignInIdP(SignInIdP_Req req)
        {
            GlobalObjects_base.SignInIdP_Req = req;

            if (req == null) return null;
            AuthorizationRequest req1 = (AuthorizationRequest)req;
            ID_Claim _ID_Claim;
            Permission_Claim _Permission_Claim;

            switch (req1.response_type)
            {
                case "code":
                    _ID_Claim = createAuthorizationCodeEntry(req1);
                    if (IdentityRecords.setEntry(req1.IdPSessionSecret, req1.Realm, _ID_Claim) == false)
                        return null;
                    break;
                case "token":
                    _Permission_Claim = createAccessTokenEntry(req1.redirect_uri, req1.scope, req1.state);
                    _ID_Claim = IdentityRecords.getEntry(req1.IdPSessionSecret, req1.Realm);
                    break;
                default:
                    return null;
            }

            return Redir(_ID_Claim.Redir_dest, _ID_Claim);
        }