0

I have written an ArcGIS app using JavaScript API 4.23 accessing ArcGIS online (personal account). The code is stored in an .html file I have saved on my hard drive. I now want to point the app at my companies enterprise portal, but searching I cannot find a way to access the portal using JavaScript. Currently I login into my company portal UI pressing the blue button below (I do not need to enter any credentials).

enter image description here

asked Jun 21, 2022 at 14:37

1 Answer 1

0

You must register an "App" item in the Portal, which will give you an "appId", and then use esri/portal/Portal and esri/identity/OAuthInfo. Here is a tutorial that steps you through the steps: Access ArcGIS Online items using OAuth 2.0

answered Aug 12, 2022 at 1:12
1
  • Thank you that doesn't work. I have tried that. Commented Aug 12, 2022 at 12:00

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.