Select to view content in your preferred language

C# OAuth2 example

6636
4
09-03-2013 09:25 AM
RichardWatson
Deactivated User
I am looking to develop a C# application which interacts with AGOL.  This application is a simple Windows application (not Silverlight, not JavaScript, not Python, etc.) and is intended to be part of the ArcGIS Marketplace.  My understanding is that Marketplace applications are required to use OAuth2 in order to connect to AGOL.

Are there any .NET examples (sample code) which shows how to get an AGOL token using OAuth2?

I did find this URL which indicates that I can used the reserved redirect URL of "urn:ietf:wg:oauth:2.0:oob":

https://developers.arcgis.com/en/authentication/user-logins.html
Tags (2)
0 Kudos
4 Replies
AnttiKajanus1
Deactivated User
0 Kudos
RichardWatson
Deactivated User
I had not found that on my own.

Thank you for sharing it.

BTW, I would mark your response as an answer but this forum does not appear to have that functionality.
0 Kudos
AnttiKajanus1
Deactivated User
I had not found that on my own.

Thank you for sharing it.

BTW, I would mark your response as an answer but this forum does not appear to have that functionality.


Np, glad to help. It seems that there are same issue in many sub-forums.
0 Kudos
nicogis
MVP Frequent Contributor
0 Kudos