Skip to content

Commit

Permalink
[FIX] webservice: migration of forward port
Browse files Browse the repository at this point in the history
  • Loading branch information
john-herholz-dt committed May 14, 2024
1 parent 16b2c10 commit f1a309f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions webservice/views/webservice_backend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
type="object"
name="button_authorize"
string="OAuth Authorize"
attrs="{'invisible': ['|', ('auth_type', '!=', 'oauth2'), ('oauth2_flow', '!=', 'authorization_code')]}"
invisible="auth_type != 'oauth2' or oauth2_flow != 'authorization_code'"
/>
</header>
<sheet>
Expand Down Expand Up @@ -59,31 +59,37 @@
/>
<field
name="oauth2_flow"
attrs="{'invisible': [('auth_type', '!=', 'oauth2')], 'required': [('auth_type', '=', 'oauth2')]}"
invisible="auth_type != 'oauth2'"
required="auth_type == 'oauth2'"
/>
<field
name="oauth2_clientid"
attrs="{'invisible': [('auth_type', '!=', 'oauth2')], 'required': [('auth_type', '=', 'oauth2')]}"
invisible="auth_type != 'oauth2'"
required="auth_type == 'oauth2'"
/>
<field
name="oauth2_client_secret"
attrs="{'invisible': [('auth_type', '!=', 'oauth2')], 'required': [('auth_type', '=', 'oauth2')]}"
invisible="auth_type != 'oauth2'"
required="auth_type == 'oauth2'"
/>
<field
name="oauth2_scope"
attrs="{'invisible': [('auth_type', '!=', 'oauth2'), ('oauth2_flow', '!=', 'authorization_code')], 'required': [('auth_type', '=', 'oauth2'), ('oauth2_flow', '=', 'authorization_code')]}"
invisible="auth_type != 'oauth2' or oauth2_flow != 'authorization_code'"
required="auth_type == 'oauth2' and oauth2_flow == 'authorization_code'"
/>
<field
name="oauth2_authorization_url"
attrs="{'invisible': [('auth_type', '!=', 'oauth2'), ('oauth2_flow', '!=', 'authorization_code')], 'required': [('auth_type', '=', 'oauth2'), ('oauth2_flow', '=', 'authorization_code')]}"
invisible="auth_type != 'oauth2' or oauth2_flow != 'authorization_code'"
required="auth_type == 'oauth2' and oauth2_flow == 'authorization_code'"
/>
<field
name="oauth2_token_url"
attrs="{'invisible': [('auth_type', '!=', 'oauth2')], 'required': [('auth_type', '=', 'oauth2')]}"
invisible="auth_type != 'oauth2'"
required="auth_type == 'oauth2'"
/>
<field
name="oauth2_audience"
attrs="{'invisible': [('auth_type', '!=', 'oauth2')]}"
invisible="auth_type != 'oauth2'"
/>
</group>
</sheet>
Expand Down

0 comments on commit f1a309f

Please sign in to comment.