File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
ui/src/app/settings/components Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export const RepoDetails = (props: {repo: models.Repository; save?: (params: New
39
39
40
40
if ( repository . type === 'git' ) {
41
41
items . push ( {
42
- title : 'Bearer token (optional)' ,
42
+ title : 'Bearer token (optional, for BitBucket only )' ,
43
43
view : repository . bearerToken ? '******' : '' ,
44
44
edit : ( formApi : FormApi ) => < FormField formApi = { formApi } field = 'bearerToken' component = { Text } componentProps = { { type : 'password' } } />
45
45
} ) ;
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ export class ReposList extends React.Component<
218
218
password : ! httpsValues . password && httpsValues . username && 'Password is required if username is given.' ,
219
219
bearerToken :
220
220
( httpsValues . password && httpsValues . bearerToken && 'Either the password or the bearer token must be set, but not both.' ) ||
221
- ( httpsValues . type != 'git' && 'Bearer token is only supported for Git repositories' ) ,
221
+ ( httpsValues . type != 'git' && 'Bearer token is only supported for Git BitBucket repositories' ) ,
222
222
tlsClientCertKey : ! httpsValues . tlsClientCertKey && httpsValues . tlsClientCertData && 'TLS client cert key is required if TLS client cert is given.'
223
223
} ;
224
224
case ConnectionMethod . GITHUBAPP :
@@ -690,7 +690,7 @@ export class ReposList extends React.Component<
690
690
< div className = 'argo-form-row' >
691
691
< FormField
692
692
formApi = { formApi }
693
- label = 'Bearer token (optional)'
693
+ label = 'Bearer token (optional, for BitBucket only )'
694
694
field = 'bearerToken'
695
695
component = { Text }
696
696
componentProps = { { type : 'password' } }
Original file line number Diff line number Diff line change @@ -183,8 +183,7 @@ func TestHTTPSCreds_Environ_bearerTokenAuth(t *testing.T) {
183
183
break
184
184
}
185
185
}
186
- b64enc := base64 .StdEncoding .EncodeToString ([]byte ("token" ))
187
- assert .Equal (t , "Authorization: Bearer " + b64enc , header )
186
+ assert .Equal (t , "Authorization: Bearer token" , header )
188
187
})
189
188
}
190
189
You can’t perform that action at this time.
0 commit comments