Skip to content

Commit

Permalink
Merge branch 'main' into rework-auth-flows
Browse files Browse the repository at this point in the history
  • Loading branch information
UnicornChance authored Dec 10, 2024
2 parents 9b14438 + f0a198e commit 87cca99
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 3 deletions.
20 changes: 19 additions & 1 deletion src/realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2976,7 +2976,25 @@
"defaultAction": false,
"priority": 1001,
"config": {}
}
},
{
"alias": "webauthn-register-passwordless",
"name": "Webauthn Register Passwordless",
"providerId": "webauthn-register-passwordless",
"enabled": true,
"defaultAction": false,
"priority": 1002,
"config": {}
},
{
"alias": "webauthn-register",
"name": "Webauthn Register",
"providerId": "webauthn-register",
"enabled": true,
"defaultAction": false,
"priority": 1003,
"config": {}
}
],
"browserFlow": "UDS Authentication",
"registrationFlow": "UDS Registration",
Expand Down
20 changes: 19 additions & 1 deletion src/test/cypress/realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2749,7 +2749,25 @@
"defaultAction": false,
"priority": 1001,
"config": {}
}
},
{
"alias": "webauthn-register-passwordless",
"name": "Webauthn Register Passwordless",
"providerId": "webauthn-register-passwordless",
"enabled": true,
"defaultAction": false,
"priority": 1002,
"config": {}
},
{
"alias": "webauthn-register",
"name": "Webauthn Register",
"providerId": "webauthn-register",
"enabled": true,
"defaultAction": false,
"priority": 1003,
"config": {}
}
],
"browserFlow": "UDS Authentication",
"registrationFlow": "UDS Registration",
Expand Down
10 changes: 9 additions & 1 deletion src/theme/login/resources/css/new-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -374,4 +374,12 @@ body.password .subtitle {
.kc-social-section hr{
margin-bottom: 16px;
margin-top: 16px;
}
}

#authenticateWebAuthnButton {
display: block;
}

#registerWebAuthn {
display: block;
}
7 changes: 7 additions & 0 deletions src/theme/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ ${msg("loginTitle",(realm.displayName!''))}
<script src="${url.resourcesPath}/${script}" type="text/javascript"></script>
</#list>
</#if>
<script type="importmap">
{
"imports": {
"rfc4648": "${url.resourcesCommonPath}/vendor/rfc4648/rfc4648.js"
}
}
</script>
<#if scripts??>
<#list scripts as script>
<script src="${script}" type="text/javascript"></script>
Expand Down

0 comments on commit 87cca99

Please sign in to comment.