vb.net - AuthSubUtil.getRequestUrl -


i try redirect user google calendar , authorization can combine events on google calendar , own calendar, can't token querystring somehow :(

dim tokenurl string = authsubutil.getrequesturl("http://localhost:54522/scripts/wbmodules/test.aspx/retrievetoken", "http://www.google.com/calendar/hosted/mydomain.nl/", false, false) 

i see login , password page when enter information , try redirect own website, error message

the page requested can not displayed. site requesting access mydomain account, format of request incorrect.

the parameter 'scope' incorrect or missing.

finally mistake found, using wrong 'scope' instead of "http://www.google.com/calendar/hosted/mydomain.nl/"

i should have used more general term "http://www.google.com/calendar/feeds/"

so correct version follows

dim tokenurl string = authsubutil.getrequesturl("http://localhost:54522/scripts/wbmodules/test.aspx/retrievetoken", "http://www.google.com/calendar/feeds/", false, false) 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -