Show / Hide Table of Contents

Property ServiceUri

ServiceUri

Gets or sets the URI of the service that needs a credential.

Declaration
[DisallowNull]
public Uri? ServiceUri { get; set; }
Property Value
Type Description
Uri

The service URI.

Remarks

For a Token challenge from a federated service, this is the URL of the owning portal. For other token challenges, such as one for a portal item, it is the URL of the challenged request without its query. To find out whether an OAuthUserConfiguration applies, use CanBeUsedForUrl(Uri) instead of comparing URLs.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 300.2
.NET Windows100.13 - 300.2
.NET Android200.0 - 300.2
.NET iOS200.0 - 300.2
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.