Add support for SASL EXTERNAL
Can be useful when the server is using e.g. a cookie for authentication purposes.
This commit is contained in:
parent
a890665775
commit
21a4a71542
4 changed files with 22 additions and 7 deletions
|
@ -61,6 +61,8 @@ export default class ConnectForm extends Component {
|
|||
username: params.username || params.nick,
|
||||
password: this.state.password,
|
||||
};
|
||||
} else if (this.props.auth === "external") {
|
||||
params.saslExternal = true;
|
||||
}
|
||||
|
||||
this.state.autojoin.split(",").forEach(function(ch) {
|
||||
|
@ -112,7 +114,7 @@ export default class ConnectForm extends Component {
|
|||
}
|
||||
|
||||
let auth = null;
|
||||
if (this.props.auth !== "disabled") {
|
||||
if (this.props.auth !== "disabled" && this.props.auth !== "external") {
|
||||
auth = html`
|
||||
<label>
|
||||
Password:<br/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue