Comments (2)
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.
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)
- favicon.ico: the server responded with a status of 404 (Not Found) HOT 1
- Swagger specs duplicated with `azure-rest-api-specs` repo. HOT 4
- Guidelines page rendering issue HOT 1
- Dead link HOT 1
- missing contact information HOT 3
- CLA Information inaccurate. HOT 3
- This repo is missing important files HOT 1
- Microsoft uses Google's CDN instead their own HOT 2
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 azure.github.io.