Function generateURL(clientID:baseURL:site:redirectURI:)
public static func generateURL(
clientID: String,
baseURL: URL = URL(string: "https://arcgis.com")!,
site: String = "sharing",
redirectURI: String = "urn:ietf:wg:oauth:2.0:oob"
) -> URL
Generates a URL
that users of your app should go to to authenticate. Once they authenticate, they should copy and
paste the authentication code back into your app; that code can then be passed to GIS.init
.
Parameters
Name | Type | Description |
---|---|---|
clientID | String |
|
baseURL | URL |
Your ArcGIS Server hostname. |
site | String |
Your ArcGIS Server site name. The default is "sharing". |
redirectURI | String |
The |
Returns
The generated URL
.