Add support for OAuth 2.0 authentication

This commit is contained in:
Simon Ser 2022-09-12 11:38:43 +02:00
parent bbc94c88c0
commit e815295503
5 changed files with 228 additions and 4 deletions

View file

@ -63,6 +63,8 @@ export default class ConnectForm extends Component {
};
} else if (this.props.auth === "external") {
params.saslExternal = true;
} else if (this.props.auth === "oauth2") {
params.saslOauthBearer = this.props.params.saslOauthBearer;
}
if (this.state.autojoin) {
@ -110,7 +112,7 @@ export default class ConnectForm extends Component {
}
let auth = null;
if (this.props.auth !== "disabled" && this.props.auth !== "external") {
if (this.props.auth !== "disabled" && this.props.auth !== "external" && this.props.auth !== "oauth2") {
auth = html`
<label>
Password:<br/>