-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Labels
Milestone
Description
When there's a token configured, it's used as the value of the password:
Line 51 in 3e01a00
this.password = StringUtils.hasText(token) ? token : password; |
When deciding whether to configure authentication, there has to be a username:
Lines 60 to 62 in 3e01a00
if (StringUtils.hasLength(username)) { | |
builder = builder.basicAuthentication(username, password); | |
} |
With token-based authentication, a username isn't necessary. Instead, we should present the token as part of an Authentication: Bearer
header.