GithubHelp home page GithubHelp logo

Test Console > OAuth 2.0 Authorization Code Authorization > "Unable to authenticate due to internal error." about api-management-developer-portal HOT 5 CLOSED

Blackbaud-ChristopherRodgers avatar Blackbaud-ChristopherRodgers commented on June 23, 2024 1
Test Console > OAuth 2.0 Authorization Code Authorization > "Unable to authenticate due to internal error."

from api-management-developer-portal.

Comments (5)

phsmith avatar phsmith commented on June 23, 2024 4

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.

sthirthala avatar sthirthala commented on June 23, 2024 2

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.

gs11 avatar gs11 commented on June 23, 2024

I can confirm that disabling React Developer Tools in Firefox resolves the issue for me as well.

from api-management-developer-portal.

JakubHolovsky avatar JakubHolovsky commented on June 23, 2024

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:

image

from api-management-developer-portal.

KrisFrost avatar KrisFrost commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.