Giter Site home page Giter Site logo

Comments (2)

devigned avatar devigned commented on July 1, 2024 1

You are exactly right. Thank you for logging the issue. I think I'm going to have rewrite some of the security logic in SwaggerUI to deal with OAuth and tenants in AAD. I'll probably get to this in the next week or so.

If you have more than one tenant, the token received back from Azure Active Directory is for the common tenant and will not be Tenant specific (thus no subscriptions returned). If you use an organizational id or a live id with only one tenant, then you will get back the tenant specific token (thus listing subscriptions).

Basically, to solve this, I would need to request the token from the common tenant, then request the list of subscriptions per tenant, then override SwaggerUI to use the proper tenant per subscription.

😞

from azure.github.io.

joshbooker avatar joshbooker commented on July 1, 2024

i do get all tenants returned. Wonder if it would work to populate tenant drop down from common token. Then re auth with chosen tenant to get list of subs. Not sure if that works or simplifies scope of changes.

from azure.github.io.

Related Issues (9)

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.