Skip to content

Commit eca3a91

Browse files
fix(spp_dci_client): show bearer token field in data source form
The data source model enforces a constraint requiring bearer_token when auth_type is 'bearer', but the form view only rendered the OAuth2 fields. Selecting 'Bearer Token' left no input to set the credential. Add the bearer_token field gated on auth_type == 'bearer', mirroring the OAuth2 field layout.
1 parent 7b5de7e commit eca3a91

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spp_dci_client/views/data_source_views.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@
120120
name="auth_type"
121121
help="Authentication method to use with this data source"
122122
/>
123+
<field
124+
name="bearer_token"
125+
widget="password"
126+
invisible="auth_type != 'bearer'"
127+
help="Static Bearer token sent as the Authorization header"
128+
/>
123129
<field
124130
name="oauth2_token_url"
125131
widget="url"

0 commit comments

Comments
 (0)