google api dotnet client - OAuth2 confusion, C#.Net -
i trying develop web server application, running on in-house server using c# , .net. purpose of application interface google calendar, read events , generate travel expense reports.
basing oauth2 piece of code example here able come application works, mostly.
i because somewhere along lines, confusion arises whether user logged in , or authenticated , user logged in.
for example: if launch chrome , access application, if open browser (ie or ff), log in different google account , launch application, report gives account was/is logged google in chrome? in first browser (chrome in case) url contains parameter ?code url in second browse not , remains url application.
when launch application in 2nd browser using different google account, appears authentication failing (button text remains "authenticate" line of code, see below, fetches calendar list still executing , receiving response after clicking on "authenticate" button, returned data being account is/was logged in via 1st browser.
calendarlist response = _service.calendarlist.list().fetch(); i've tried without success find out why happening starting drive me crazy , far limits usefulness of application.
could problem have session state information stored on our server? oauth2 code sample using out of date , if find correct example?
any suggestions appreciated.
thanks
i agree user2367592, try test application without static service, , please let know if works.
anyway, in version 1.5 (currently use 1.3) going rid of dotnetopenauth , improve whole oauth2 experience, - sorry inconvenient.
Comments
Post a Comment