Ejemplo n.º 1
0
        public override SignInRP_Resp SignInRP(SignInIdP_Resp_SignInRP_Req req)
        {
            LiveIDAuthenticationResponse codeResp   = (LiveIDAuthenticationResponse)req;
            AuthenticationConclusion     conclusion = AuthenticationUsingAuthorizationCodeFlow(codeResp);

            if (conclusion != null)
            {
                isVerified = true;
            }
            return(null);
        }
Ejemplo n.º 2
0
 public LiveIDAuthenticationResponse parseAuthenticationResponse(HttpRequest rawRequest)
 {
     LiveIDAuthenticationResponse r = new LiveIDAuthenticationResponse();
     HttpContext context = HttpContext.Current;
     r.code = rawRequest.QueryString["code"];
     r.state = rawRequest.QueryString["state"];
     if (string.IsNullOrEmpty(r.code))
         return null;
     else
         return r;
 }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpSessionStateBase sessionBase = new HttpSessionStateWrapper(Session);

        RP.CurrentSession = sessionBase;
        LiveIDAuthenticationResponse codeResp = (LiveIDAuthenticationResponse)RP.parseAuthenticationResponse(HttpContext.Current.Request);

        if (codeResp == null)
        {
            return;
        }
        RP.SignInRP(codeResp);
    }
Ejemplo n.º 4
0
        public LiveIDAuthenticationResponse parseAuthenticationResponse(HttpRequest rawRequest)
        {
            LiveIDAuthenticationResponse r = new LiveIDAuthenticationResponse();
            HttpContext context            = HttpContext.Current;

            r.code  = rawRequest.QueryString["code"];
            r.state = rawRequest.QueryString["state"];
            if (string.IsNullOrEmpty(r.code))
            {
                return(null);
            }
            else
            {
                return(r);
            }
        }