Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] OAuth 2.0 can't be use in Demo #1470

Open
2 of 7 tasks
Riton2013 opened this issue Jul 9, 2024 · 3 comments
Open
2 of 7 tasks

[Bug] OAuth 2.0 can't be use in Demo #1470

Riton2013 opened this issue Jul 9, 2024 · 3 comments
Labels
Needs more info The issue reported needs more info for triage Type: Bug

Comments

@Riton2013
Copy link

Riton2013 commented Jul 9, 2024

Platforms

  • Android
  • iOS
  • macOS
  • Windows

Apps

  • .NET MAUI
  • WinUI
  • WPF

Bug Description

I try to run up WPF demo, but failed. Because I cant get APIKey。I have reviewed all the application information about API credentials on the official website and it is clear that the old API has been abandoned and replaced with OAuth 2.0, but this cannot be used for demo.As below:

ArcGIS Maps SDK: The API key '*RnelT' is invalid, expired or does not have access to the resource. - 'https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps/arcgis/topographic'. Please visit https://developers.arcgis.com/api-keys to configure the API key to access the resource, or to create a new API key. ArcGIS Maps SDK: Load Error: Basemap Esri.ArcGISRuntime.Http.ArcGISWebException The provided APIKey is invalid, expired or does not have access to the resource. ArcGIS Maps SDK: Load Error: Map Esri.ArcGISRuntime.Http.ArcGISWebException The provided APIKey is invalid, expired or does not have access to the resource.

Steps to Reproduce

Just run up.

Impacted Samples

No response

Log Output

No response

@pMaske
Copy link
Member

pMaske commented Aug 2, 2024

@Riton2013 , are you saying your existing API key has stopped working or that you are unable generate an API key?

@pMaske pMaske added the Needs more info The issue reported needs more info for triage label Aug 2, 2024
@vatllc
Copy link

vatllc commented Dec 6, 2024

Joining this thread... API key created as directed in the tutorial is "invalid" - regardless of how I input it, UI or hardcoded.

image

@duffh
Copy link
Collaborator

duffh commented Dec 9, 2024

@vatllc I've not managed to reproduce the issue you're seeing building the WinUI viewer on main.

Could you give me some more information on your issue?

Does your API key have basemap privileges enabled?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs more info The issue reported needs more info for triage Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants