OAuthInfo.js 1.8 KB

12345
  1. /*
  2. All material copyright ESRI, All Rights Reserved, unless otherwise specified.
  3. See https://js.arcgis.com/4.25/esri/copyright.txt for details.
  4. */
  5. import{_ as o}from"../chunks/tslib.es6.js";import{JSONSupport as t}from"../core/JSONSupport.js";import{property as r}from"../core/accessorSupport/decorators/property.js";import"../core/arrayUtils.js";import"../core/accessorSupport/ensureType.js";import{subclass as e}from"../core/accessorSupport/decorators/subclass.js";var p;let s=p=class extends t{constructor(o){super(o),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return p.fromJSON(this.toJSON())}};o([r({json:{write:!0}})],s.prototype,"appId",void 0),o([r({json:{write:!0}})],s.prototype,"authNamespace",void 0),o([r({json:{write:!0}})],s.prototype,"expiration",void 0),o([r({json:{write:!0}})],s.prototype,"flowType",void 0),o([r({json:{write:!0}})],s.prototype,"forceLogin",void 0),o([r({json:{write:!0}})],s.prototype,"forceUserId",void 0),o([r({json:{write:!0}})],s.prototype,"locale",void 0),o([r({json:{write:!0}})],s.prototype,"minTimeUntilExpiration",void 0),o([r({json:{write:!0}})],s.prototype,"popup",void 0),o([r({json:{write:!0}})],s.prototype,"popupCallbackUrl",void 0),o([r({json:{write:!0}})],s.prototype,"popupWindowFeatures",void 0),o([r({json:{write:!0}})],s.prototype,"portalUrl",void 0),o([r({json:{write:!0}})],s.prototype,"preserveUrlHash",void 0),o([r({json:{write:!0}})],s.prototype,"userId",void 0),s=p=o([e("esri.identity.OAuthInfo")],s);const i=s;export{i as default};