Access ArcGIS Online items using OAuth 2.0
This sample shows you how to use inline web flow, as opposed to using a pop-up window that presents a login user interface. With inline web flow there is no popup window involved. It allows users to login to the ArcGIS platform using OAuth 2.0 functionality built directly into the IdentityManager.
This built-in functionality handles a lot of the fine-grained work that you would typically have to do when implementing this type of authentication.
The IdentityManager component simplifies the process of working with the token by appending it to requests and acquiring a new token when necessary. All you need to do is create an OAuthInfo object and specify the appId you received when registering your application. After this is set, pass this OAuthInfo object to the IdentityManager's registerOauthInfos method and the IdentityManager takes care of the rest.
More detailed information about user logins and OAuth 2.0 can be found here.
Sample search results
Title | Sample |
---|
There were no match results from your search criteria.