POST
|
Thanks Marvin for the update. I'm glad to know that your issue is resolved! Regards, Nimesh
... View more
Wednesday
|
0
|
0
|
15
|
POST
|
Thanks for Marvin for information. It will be great if you can just provide a sample project which reproduce the issue so I can debug and see what is going on. Other important thing to note, SDK is able to display OAuth login page using the SafariViewController only if app has provided an `AGSOAuthConfiguration` instance in OAuthConfigurations property. Can you please check, comment out that code and retry? Regards, Nimesh
... View more
a week ago
|
0
|
2
|
54
|
POST
|
Thanks for the code and sorry for the delayed response. Since, `didReceive challenge` function is implemented, SDK should call it for all challenges. The `continueWithDefaultHandling` call is part of that function so may be get called. The OAuth2's access token generated using authorization code flow are valid for 30 minutes so you should see a challenge after 30 minutes. I'm not sure how `isAuthenticatingUser`, `useBrowserAuthentication`, and `showLoginStatus()` are controlled. So, I would suggest changing code based on challenge type to see if that makes difference. If the challenge type is `OAuth` then call your `useBrowserAuthentication(challenge: challenge)` function. Also, can you please share the result of this log? Also, you can include challenge's request in this debug log. Log.debug("challenge: \(String(describing: challenge.type.rawValue)), host: \(challenge.authenticatingHost)") Hope this helps narrow down the issue. Regards, Nimesh
... View more
2 weeks ago
|
0
|
4
|
80
|
POST
|
Hi @mmoosbac94 , Looks like you are using the 100.x version of the SDK and we encourage posting questions for it on ArcGIS Runtime SDK for iOS Questions. If you have implemented the AGSAuthenticationManagerDelegates´s function then it will be called for all challenges. How are you handling the Authentication workflow manually? It will be good if you can post some relevant code. I'm assuming you are using the continueWithDefaultHandling on the challenge from the above delegate function. You can check the type of the challenge and if it is `AGSAuthenticationChallengeTypeOAuth` then handle it how you are handling it first time. The SDK uses Apple recommended APIs to display the OAuth login page. Regards, Nimesh
... View more
3 weeks ago
|
0
|
6
|
133
|
POST
|
Hi @zdtorok, Please use ConsoleNetworkLogger in 200.x for request logging. You can use following code at the start of the application. let logger = ConsoleNetworkLogger(requestOptions: [.method, .body, .headers], responseOptions: [.data, .headers])
logger.startLogging() Also, you can use the NetworkLogger protocol to build your own custom network logger. Hope this helps! Regards, Nimesh
... View more
03-12-2024
08:54 AM
|
1
|
0
|
165
|
POST
|
Hi Ajitesh, Are you setting the correct license key? What your `clientID` string looks like? The format of the license key should look like, <license level lite/basic>,<number of deployments>,<string>,<expiration date>,<some string> Regards, Nimesh
... View more
03-05-2024
08:07 AM
|
0
|
1
|
144
|
POST
|
Hi @DuanePfeiffer , Thank you for the code. Please, mask the license key you posted in the code. Sorry, I misunderstood your initial question. I thought you are getting prompted between application sessions even after providing credentials first time. However, look like you are prompted to enter the username/password instead of an OAuth login page. Is that correct? If yes, is it because the `OAuthUserConfiguration` expect a portal URL and you are passing the feature service URL? portalURL: K.vegetationManagementFeatureServiceURL Regards, Nimesh
... View more
02-16-2024
09:59 AM
|
0
|
1
|
227
|
POST
|
Hi @DuanePfeiffer , Are you setting up the persistent credential stores as shown in authentication example of the toolkit? Regards, Nimesh
... View more
02-15-2024
05:59 PM
|
0
|
3
|
345
|
POST
|
Hi @zdtorok, I'm glad to hear that the issue has been resolved and that the flow is now working correctly. Thank you for letting me know and for your kind words. Regards, Nimesh
... View more
02-15-2024
08:46 AM
|
0
|
0
|
344
|
POST
|
Hi @zdtorok , I receive one challenge. challenge.remoteResource?.url is https://tiles.arcgis.com/tiles/B129y13w1XikjUdj/arcgis/rest/services/MyMapService/MapServerand challenge.request.url is https://www.arcgis.com/sharing/rest/generateToken The challenge is issued for the portal (https://www.arcgis.com) and the layer (https://tiles.arcgis.com/tiles/B129y13w1XikjUdj/arcgis/rest/services/MyMapService/MapServer) is federated with the portal. The credential with token you are providing is the portal token. The following request creates a federated token with the token you have provided. - [https://www.arcgis.com/sharing/rest/generateToken](https://www.arcgis.com/sharing/rest/generateToken?token=*****&serverUrl=https%3A%2F%2Ftiles.arcgis.com%2Ftiles&client=referer&referer=arcgisios&f=json)
- POST body:
```
{
client = referer;
f = json;
referer = arcgisios;
serverUrl = "https://tiles.arcgis.com/tiles";
}
``` The layer is not accessible with the federated token and fails with an error. {
"error" : {
"message" : "You do not have permissions to use this resource.",
"details" : null,
"code" : 403
}
} The error for another layer seems to indicate the same that it is not accessible with the given token. {
"error" : {
"code" : 403,
"message" : "Subscription is disabled, the item is not accessible",
"messageCode" : "SB_0005",
"details" : [
"Subscription is disabled, the item is not accessible"
]
}
} Another strange issue, can it happen that for the same user for the same resource with the same token handling, on iOS we receive an 403 error but on Android it works I doubt, but would like to see the side-by-side logs with actual token values. Regards, Nimesh
... View more
02-12-2024
03:28 PM
|
0
|
2
|
380
|
POST
|
Hi @zdtorok I would like know few things to narrow down the issue as well as understand your code and what you are trying to achieve. 1. What is the motivation of having your own OAuth implementation and generating tokens rather than using SDK's OAuth implementation? 2. If you are generating OAuth tokens on your own why are you providing the OAuth configuration on `AGSAuthenticationManager.shared().oAuthConfigurations`? 3. What is the portal url and basemaps url looks like? 4. How many challenges are issued and what are their request URLs? 5. Is basemap service federated with the portal you are generating OAuth token? If yes, you will have to generate a federated token using the portal (OAuth) token you have generated. See https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm 6. The SDK provides a way to debug the requests and responses. Please use following code and provide the generated log file. let config = AGSRequestConfiguration.global()
config.debugLogFileURL = URL(fileURLWithPath: “<path to .md file”)
config.debugLogRequests = true
config.debugLogIncludeRequestHeaders = true
config.debugLogResponses = true
config.debugLogIncludeResponseHeaders = true
config.debugLogResponseTrimThreshold = 500
config.debugLogIgnoreTiledLayerRequests = true Regards, Nimesh
... View more
02-08-2024
09:51 AM
|
0
|
2
|
445
|
POST
|
Hi @DuanePfeiffer , I'm not sure why you are getting SQLite 1014 error by just looking at the above code. However, there was another user who posted issue in the thread for the same error. Please check if same applied in your case. If not, I would appreciate if you can provide a reproducible Xcode project for us to debug. Please feel free to DM me. Regards, Nimesh
... View more
02-06-2024
04:03 PM
|
0
|
1
|
190
|
POST
|
Hi @padmalcom , I would like to know more about the configuration to narrow down the issue. 1. Apart from proxy in front of ArcGIS server, are there any security setup on ArcGIS Portal and Server? Does it require any additional authentication? 2. Based on log and information provided above seems that ArcGIS server is getting some token, trying to authenticate and fails with invalid token error. Is it possible for you to provide the request parameters and headers used by the request which fails with invalid token error? 3. Is it possible to configure proxy to use some other name of the authorization header? The `Authorization` is a standard header and may conflict with the web adaptor if configured on top of Portal and Server. We use `X-Esri-Authorization` header for our bearer token authentication. So if you can try some other custom name to try to narrow down the issue. Regards, Nimesh
... View more
12-15-2023
10:07 AM
|
0
|
0
|
434
|
POST
|
Hi @JoeDeveloper_Esri, Can you please provide the data/url to reproduce the error? You can direct message me to avoid posting it here. We have released 200.x version as ArcGIS Maps SDK for Swift. It will be good to test it with newer SDK as well. Regards, Nimesh
... View more
11-27-2023
10:15 AM
|
0
|
0
|
223
|
POST
|
Greetings Unfortunately, the Swift SDK does not support the proxy url format you are using. However, it supports intercepting the requests/responses. You can create a custom object using DataTaskInterceptor and set it on the ArcGISURLSession.dataTaskInterceptor. You can do the same for download requests using DownloadTaskInterceptor. Hope this helps! Regards, Nimesh
... View more
10-05-2023
08:59 AM
|
0
|
0
|
519
|
Title | Kudos | Posted |
---|---|---|
1 | 03-12-2024 08:54 AM | |
1 | 09-28-2023 08:19 AM | |
2 | 07-28-2023 08:07 AM | |
1 | 06-27-2013 10:42 AM | |
3 | 04-14-2023 08:32 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|