authentication in angular

1561
10
08-26-2022 05:53 AM
Mannus_Etten
New Contributor III

i find many examples pretty useful but all written with amd / require-syntax.

so also the example with oauth login.

so in the example there is:
  esriId.registerOAuthInfos([info]);
but that doesn't work in an angular app with es-modules. How does I do this now?
 
HHow do I get the OAuth-popup now?
 
i am looking for an example with es-modules. No amd-modules and also no "require(xxxx)"-syntax.
CEO the Right Direction BV/Portal Genius
10 Replies
Mannus_Etten
New Contributor III

I got it running in the end, if you place the html in the assets-folder for the oauth-callback it is solved. Files in this folder are not going through the routing mechanism.

CEO the Right Direction BV/Portal Genius
0 Kudos