mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-04-30 12:24:24 +02:00
Passwordless login redirect (but it doesn't work yet)
This commit is contained in:
@@ -116,7 +116,7 @@
|
||||
</div>
|
||||
|
||||
<form action="#" method="POST">
|
||||
<input name="sessionId" type="hidden" value="somesessionid">
|
||||
<input name="sessionId" type="hidden" value="{sessionId}">
|
||||
<div id="form-generated"></div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -257,7 +257,7 @@
|
||||
result.replaceChildren();
|
||||
webAuthn.loginOnly({ name: userName })
|
||||
.then(body => {
|
||||
form("/webauthn/login", {
|
||||
form("/auth/passwordless/login", {
|
||||
'webAuthnId': body.id,
|
||||
'webAuthnRawId': body.rawId,
|
||||
'webAuthnResponseClientDataJSON': body.response.clientDataJSON,
|
||||
@@ -286,7 +286,7 @@
|
||||
|
||||
webAuthn.registerOnly({ name: userName, displayName: userName /*firstName + " " + lastName*/})
|
||||
.then(body => {
|
||||
form("/webauthn/register", {
|
||||
form("/auth/passwordless/register", {
|
||||
'webAuthnId': body.id,
|
||||
'webAuthnRawId': body.rawId,
|
||||
'webAuthnResponseAttestationObject': body.response.attestationObject,
|
||||
|
||||
Reference in New Issue
Block a user