mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 22:02:16 +00:00
feat(claim): offer the identity provider on the claim page and name the way in to guardians
The claim page shows the password form, a continue-with-provider button, or both, as the preview names them, and explains a refused single-sign-on claim when the callback sends the browser back. The guardian's handover panel says how the person will sign in.
This commit is contained in:
1 parent
3fd6bd6081
commit
0ebb61343e
13 files changed
+469
-85
No files matched your search
@@ -110,6 +110,18 @@ export function ManagedProfileHandover({
|
||||
name: profileName,
|
||||
})}
|
||||
</p>
|
||||
{/* v1.43 — how the person will get in, when it is not only a password
|
||||
they set themselves (the description already implies that one). */}
|
||||
{status.data.available && status.data.methods?.includes("sso") ? (
|
||||
<p className="text-sm" data-slot="managed-profile-handover-methods">
|
||||
{t(
|
||||
status.data.methods.includes("password")
|
||||
? "recordSharing.managed.handover.methodBoth"
|
||||
: "recordSharing.managed.handover.methodSso",
|
||||
{ name: profileName },
|
||||
)}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
{!status.data.available ? (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user