-
Notifications
You must be signed in to change notification settings - Fork 9.1k
OAuth "realm" option unclear #1424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The OAuth2 spec doesn't use The intent is to identify the resource the caller wants to access. To use OAuth2 with Azure Active Directory (AAD) I'd to switch the Neither the |
Please reopen if there's still an issue here, it seems like the request is for non oauth2 calls. |
If realm is not part of oauth2 spec and only recognized by some authorization servers why does swagger ui require it to be present? Sorry to be reopening an old issue but having been struggling to work out the meaning of the realm in my scenario. I think that realm being required is what made me think it was more important than it is. |
|
* Factored out URL handling code into function processUrl * Call processUrl in places where we use authorizationUrl and tokenUrl * Removed tiny bit of redundant code in auths.jsx * Set default/example realm name to 'your-realm' (singular) instead of 'your-realms' (plural) as this parameter is supposed to be singular afaik * Improved documentation for 'realm' in README.md Fixes swagger-api#3406 See also swagger-api#1424
In
index.html
theinitOAuth
function fromswagger-oauth.js
requires arealm
option. I couldn't find any documentation on this parameter, and it seems to be used only as a parameter for the initial authorization request. There seems to be no specification on the oauth side though for this parameter, the only mention I could find was that a provider might use arealm
attribute in the WWW-Authenticate header.With that: what was the intent of this parameter, and, could it maybe just be dead code that can be removed?
The text was updated successfully, but these errors were encountered: