Skip to content

Commit

Permalink
fix uri when using jwt (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
holy-batman authored May 28, 2021
1 parent ffd161b commit 7554a2a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lwpUserAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ export default class extends lwpRenderer {

if (this._config.authentication.jwt) {
config.authorization_jwt = this._config.authentication.jwt;
} else {
if (this._config.authentication.username) {
config.authorization_user = this._config.authentication.username;
config.uri = this._config.authentication.username + "@" + this._config.authentication.realm;

if (this._config.authentication.password) {
config.password = this._config.authentication.password;
}
}

if (this._config.authentication.username) {
config.authorization_user = this._config.authentication.username;
config.uri = this._config.authentication.username + "@" + this._config.authentication.realm;

if (this._config.authentication.password) {
config.password = this._config.authentication.password;
}
}

Expand Down

0 comments on commit 7554a2a

Please sign in to comment.