Mercurial > prosody-modules
annotate mod_jsxc/templates/template.js @ 5465:66e13e79928b
mod_http_oauth2: Note about partial OpenID Discovery implementation
Notably we don't have an JSON Web Key Set, since we use the client
secret in the HS256 algorithm.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 17 May 2023 17:56:56 +0200 |
parents | 4bdfd83e091f |
children |
rev | line source |
---|---|
4825
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
1 $(function() { |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
2 let jsxc = new JSXC({ |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
3 loadConnectionOptions: function(username, password) { |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
4 return Promise.resolve(%s); |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
5 } |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
6 }); |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
7 |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
8 let formElement = $('#jsxc_login_form'); |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
9 let usernameElement = $('#jsxc_username'); |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
10 let passwordElement = $('#jsxc_password'); |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
11 |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
12 jsxc.watchForm(formElement, usernameElement, passwordElement); |
4bdfd83e091f
mod_jsxc: Demo module serving JSXC relatively easily from Prosody
Kim Alvefur <zash@zash.se>
parents:
4227
diff
changeset
|
13 }); |