Repository navigation
[17.0][FIX] webservice: authorization URL and scope required for the web application flow - #203
Open
prashantpag26 wants to merge 1 commit into
Open
prashantpag26 wants to merge 1 commit into
prashantpag26 wants to merge 1 commit into
Conversation
…plication flow The required attribute of the scope and the authorization URL tested oauth2_flow against 'authorization_code', a value that does not exist, so they were never required for the web application flow.
Contributor
|
Hi @etobella, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #197 (18.0).
In the backend form, Scope and Authorization URL are shown for the web application flow, but their
requiredcomparesoauth2_flowwith'authorization_code', a value that does not exist (oauth2_flowisbackend_applicationorweb_application). They are never required, so a web application backend can be saved without an authorization URL, and Authorize then fails.The two
requiredattributes now use'web_application'. The form test fills both fields for that flow, and a new test checks that saving fails without the scope or the authorization URL.This was not run in a live Odoo instance.