Skip to content

[17.0][FIX] webservice: authorization URL and scope required for the web application flow - #203

Open
prashantpag26 wants to merge 1 commit into
OCA:17.0from
prashantpag26:17.0-fix-webservice-web-application-required
Open

prashantpag26 wants to merge 1 commit into
OCA:17.0from
prashantpag26:17.0-fix-webservice-web-application-required

Conversation

@prashantpag26

Copy link
Copy Markdown

Backport of #197 (18.0).

In the backend form, Scope and Authorization URL are shown for the web application flow, but their required compares oauth2_flow with 'authorization_code', a value that does not exist (oauth2_flow is backend_application or web_application). They are never required, so a web application backend can be saved without an authorization URL, and Authorize then fails.

The two required attributes 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.

…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.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants