@@ -117,7 +117,7 @@ type AuthProperties interface {
117
117
118
118
// BaseAuthProperties ...
119
119
type BaseAuthProperties struct {
120
- Common
120
+ Common `json:",inline"`
121
121
// Secret Expression referencing a workflow secret that contains all needed auth info
122
122
Secret string `json:"secret,omitempty"`
123
123
}
@@ -157,7 +157,7 @@ func (b *BasicAuthProperties) DeepCopyAuthProperties() AuthProperties {
157
157
158
158
// BasicAuthProperties Basic Auth Info
159
159
type BasicAuthProperties struct {
160
- BaseAuthProperties
160
+ BaseAuthProperties `json:",inline"`
161
161
// Username String or a workflow expression. Contains the username
162
162
Username string `json:"username" validate:"required"`
163
163
// Password String or a workflow expression. Contains the user password
@@ -188,7 +188,7 @@ func (b *BasicAuthProperties) UnmarshalJSON(data []byte) error {
188
188
189
189
// BearerAuthProperties Bearer auth information
190
190
type BearerAuthProperties struct {
191
- BaseAuthProperties
191
+ BaseAuthProperties `json:",inline"`
192
192
// Token String or a workflow expression. Contains the token
193
193
Token string `json:"token" validate:"required"`
194
194
}
@@ -218,7 +218,7 @@ func (b *BearerAuthProperties) UnmarshalJSON(data []byte) error {
218
218
219
219
// OAuth2AuthProperties OAuth2 information
220
220
type OAuth2AuthProperties struct {
221
- BaseAuthProperties
221
+ BaseAuthProperties `json:",inline"`
222
222
// Authority String or a workflow expression. Contains the authority information
223
223
Authority string `json:"authority,omitempty" validate:"omitempty,min=1"`
224
224
// GrantType Defines the grant type
0 commit comments