This code:
Session("sessionToken") = AuthSubUtil.exchangeForSessionToken(
Request.QueryString("token"), null)
Will not compile (with this error)
'Null' constant is no longer supported; use 'System.DBNull' instead.
Taking that advice, I try the following:
Session("sessionToken") = AuthSubUtil.exchangeForSessionToken(
Request.QueryString("token"), DBNull.Value)
This will also not compile (with this error)
Value of type 'System.DBNull' cannot be converted to '
System.Security.Cryptography.AsymmetricAlgorithm'
So I'm not sure where I'm going wrong...
On 10/23/07, Frank Mantek <[EMAIL PROTECTED]> wrote:
>
> I am confused. Looking at the source code for ExecRequest, it is
> using a NULL value in the exchangeForSessionToken.
>
> Frank Mantek
> Google
> On Oct 23, 2007, at 8:47 PM, Steven wrote:
>
> >
> > I am having trouble exchanging a one-time use token for a session
> > token.
> >
> > The first step in the process works great, I can get a one-time use
> > token and I have verified that in my call to getRequestUrl I am
> > requesting a token that can be exchanged for a session token.
> >
> > The problem occurs when I make the call to exchangeForSessionToken.
> > The documentation states that a value of null should be sent as the
> > "key" when using unregistered mode (which I am). Unfortunately
> > exchangeForSessionToken will not take null (or System.dbnull) and
> > wants a type System.Security.Cryptography.AsymmetricAlgorithm.
> >
> > I've tried a few thing like creating an empty key, etc but no matter
> > what I try I get a "(401) Unauthorized" when I make the call.
> >
> > Any suggestions would be appreciated.
> >
> >
> > >
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---