Beispiel #1
0
    public static string digest_HandleTokenResponse(string digest_in)
    {
        string digest = "";

#if (!DSV)
        digest = "RP[" + DSVHelper.code_to_hash(DSVHelper.return_code) + "((" + digest_in + "))]";
#endif
        return(digest);
    }
Beispiel #2
0
    //**************************************digest computations*********************************************************************
    public static string digest_RequestAccessTokenByVerifier()
    {
        string digest = "";

#if (!DSV)
        digest = "RP[" + DSVHelper.code_to_hash(DSVHelper.request_code) + "(())" + "]";
        //since we don't have control of LiveID's server, we have to add its digest here
        digest = "MSFT[" + DSVHelper.code_to_hash(DSVHelper.live_code) + "((" + digest + "))" + "]";
#endif
        return(digest);
    }