vertx-auth
vertx-auth copied to clipboard
Get the scope from the user not the principal
Depending on the AuthenticationProvider impl the scope may not be in the principal. Instead use the User#get method which checks multiple locations. This allows for the ScopeAuthorization to be used in conjunction with the OAuth2Auth.
Conformance:
Your commits should be signed and you should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines