Skip to content

Instantly share code, notes, and snippets.

@kurtisdunn
Created April 24, 2024 06:08
Show Gist options
  • Save kurtisdunn/6d464d790d68eeca3bdcedacd2d52a7d to your computer and use it in GitHub Desktop.
Save kurtisdunn/6d464d790d68eeca3bdcedacd2d52a7d to your computer and use it in GitHub Desktop.
demo.js
if (input.value) {
realmName = customConnection; //'Custom-DB'
} if else {
realmName = ADConnection;
} else {
realmName = databaseConnection;
}
webAuth.login(
{
realm: realmName,
username: username,
password: password,
protocol: "samlp",
},
function (err) {
if (err) {
displayError(err);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment