Comments (5)
I got the same behavior even though the access_token was generated successfully and the requests work fine, but the alert keeps showing in a loop.
I have tested with the latest versions of Chrome and Firefox.
Edit: I disabled the React Developer Tools extension and the alert goes away.
from api-management-developer-portal.
Please log managed portal issues to Azure support team using Support + Help link in Azure portal and select Problem Type = Developer portal.
from api-management-developer-portal.
I can confirm that disabling React Developer Tools in Firefox resolves the issue for me as well.
from api-management-developer-portal.
I am having the same issue on Edge however I don't have react tools installed. These are the only extensions enabled in my browser:
from api-management-developer-portal.
Update: This does not look to be a Developer portal issue but rather injected extension code triggering an event listener created for the scenario of Authorization such as with Try It.
The developer portal code for the authentication registers an event listener receiveMessage.
return new Promise(((resolve,reject)=>{ try { window.open(oauthClient.code.getUri(), "_blank", "width=400,height=500"); const receiveMessage = event=>__awaiter(this, void 0, void 0, (function*() { if (!event.data.accessToken) return void alert("Unable to authenticate due to internal error."); const accessToken = event.data.accessToken , accessTokenType = event.data.accessTokenType; resolve(
${utils_1.Utils.toTitleCase(accessTokenType)} ${accessToken}) } )); window.addEventListener("message", receiveMessage, !1) } catch (error) { reject(error) } }
Setting a break point here, and then stepping through, the code triggering these event is coming from content.js from editor extension in this case. Other extensions can be debugged the same way.
For the editor extension, what appears to be doing is a grammar check on the drop-down box for either the Authorization flow dropdown or the Subscription key drop down or all of them.
It's triggering the dev portals receiveMessage eventlistener. I did find I could go into the settings and changed "This can read and change site data" to When you click the extension. This prevents the issue as well.
Additionally, you could try experiment with turning off grammar or also exclude the developer portal domain from being used by the extension which is probably the best option and still have the extension available.
from api-management-developer-portal.
Related Issues (20)
- Poor Design Choice of New Portal Editor - Publish Button Placement HOT 1
- Short session timeout: Oops, something went wrong HOT 2
- snapshotMediaFolder is not defined HOT 2
- loading of the anchor "Definitions" stopped working.... HOT 4
- Question about developer portal backup HOT 4
- API list details are not refreshing HOT 6
- Query parameter examples still not supported
- `&` sign in response from Try it translates to `\u0026`
- Developer Portal not working with Custom Domain names in StandardV2 SKU HOT 2
- Custom Gadget- User session is not detected while navigating to other page from Cutom Gadget HOT 3
- Facing Unable to complete the request in test console(try it) of developer portal for apis that takes longer time to process request. HOT 1
- Custom widget can not call an API of APIM - Origin null is not allowed by Access-Control-Allow-Origin HOT 1
- The latest version of scripts.v3 using migrate.js does not work in Azure Government Cloud HOT 3
- J
- Developer Portal: OAS Schema property limitations not visible
- Option to clone the developer portal to another apim instance HOT 1
- Developer Portal Reports Page - Add Date Input for Filtering
- Azure API Management OData Service not showing up in Developer Portal HOT 1
- Export API definitions from API Management developer portal HOT 1
- Updates for Test Console "Try It" section
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-management-developer-portal.