Skip to content

Added custom portal property for ArcGIS map-layers, to support OAuth2 authentication.#8609

Merged
mdastous-bentley merged 11 commits into
masterfrom
MichelD/maplayers_portal
Oct 7, 2025
Merged

Added custom portal property for ArcGIS map-layers, to support OAuth2 authentication.#8609
mdastous-bentley merged 11 commits into
masterfrom
MichelD/maplayers_portal

Conversation

@mdastous-bentley

@mdastous-bentley mdastous-bentley commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

We previously inferred portal URL from map-layer URL, which can potentially to lead to failures. Instead, if a ArcGIS enterprise server has a custom portal URL, end-user should should be able to supply it part of its map-layer definition, and the provider will pass the information to access client.

This will also align with the OAuth2 support offered by @esri/arcgis-rest-request

Comment thread core/frontend/src/tile/map/MapLayerAuthentication.ts Outdated
@aruniverse aruniverse requested a review from Copilot October 3, 2025 20:11
Co-authored-by: Arun George <11051042+aruniverse@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for custom portal URLs in ArcGIS map layers to improve OAuth2 authentication reliability. Previously, the portal URL was inferred from the map layer URL, which could lead to authentication failures.

  • Added optional portal property to MapLayerAccessTokenParams interface
  • Deprecated mapLayerUrl property in favor of the new portal property
  • Updated ArcGIS imagery provider to use the custom portal URL when provided

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
MapLayerAuthentication.ts Added optional portal property and deprecated mapLayerUrl
ArcGISImageryProvider.ts Updated to pass custom portal URL to authentication client
MichelD-maplayers_portal_2025-10-03-20-05.json Added changelog entry for the feature
core-frontend.api.md Updated API documentation to include new portal property

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread core/frontend/src/tile/map/MapLayerAuthentication.ts Outdated
Comment thread core/frontend/src/tile/map/MapLayerAuthentication.ts Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mdastous-bentley

Copy link
Copy Markdown
Contributor Author

@aruniverse Ideally we would like get this backported to latest release branch as we need it in the short term.

@aruniverse

Copy link
Copy Markdown
Member

@Mergifyio backport release/5.2.x

@mergify

mergify Bot commented Oct 6, 2025

Copy link
Copy Markdown
Contributor

backport release/5.2.x

✅ Backports have been created

Details

@mdastous-bentley mdastous-bentley enabled auto-merge (squash) October 7, 2025 13:37
@mdastous-bentley mdastous-bentley merged commit 2a0395c into master Oct 7, 2025
15 checks passed
@mdastous-bentley mdastous-bentley deleted the MichelD/maplayers_portal branch October 7, 2025 14:17
mergify Bot pushed a commit that referenced this pull request Oct 7, 2025
mdastous-bentley pushed a commit that referenced this pull request Oct 7, 2025
…h2 authentication. (backport #8609) [release/5.2.x] (#8613)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants