Select to view content in your preferred language

OAuthInfo parameters

4458
0
12-29-2014 05:29 PM
EdwardSohn2
Deactivated User

OAuthInfo | API Reference | ArcGIS API for JavaScript

In the API documentation for OAuthInfo, what is the difference for parameters:

expiration and minTimeUntilExpiration.

In the _checkSignIn function is it possible to use these values to control the expiration period of the token?

_checkSignIn: function () {

            var deferred, signedIn;

            deferred = new Deferred();

            //If there's an oauth appid specified register it

            if (this.config.oauthappid) {

                var oAuthInfo = new ArcGISOAuthInfo({

                    appId: this.config.oauthappid,

                    popup: true

                });

                IdentityManager.registerOAuthInfos([oAuthInfo]);

            }

            // check sign-in status

            signedIn = IdentityManager.checkSignInStatus(this.config.sharinghost + "/sharing");

            // resolve regardless of signed in or not.

            signedIn.promise.always(function () {

                deferred.resolve();

            });

            return deferred.promise;

        },

Note: this.config.oauthappid is null.

0 Kudos
0 Replies