mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-25 20:49:30 +02:00
proxy: add userinfo and webauthn endpoints (#3755)
* proxy: add userinfo and webauthn endpoints * use TLD for RP id * use EffectiveTLDPlusOne * upgrade webauthn * fix test * Update internal/handlers/jwks.go Co-authored-by: bobby <1544881+desimone@users.noreply.github.com> Co-authored-by: bobby <1544881+desimone@users.noreply.github.com>
This commit is contained in:
parent
81053ac8ef
commit
c1a522cd82
33 changed files with 498 additions and 216 deletions
|
@ -28,6 +28,7 @@ async function authenticateCredential(
|
|||
challenge: decode(requestOptions?.challenge),
|
||||
timeout: requestOptions?.timeout,
|
||||
userVerification: requestOptions?.userVerification,
|
||||
rpId: requestOptions?.rpId,
|
||||
},
|
||||
});
|
||||
return credential as CredentialForAuthenticate;
|
||||
|
|
|
@ -39,6 +39,7 @@ async function createCredential(
|
|||
})),
|
||||
rp: {
|
||||
name: creationOptions?.rp?.name,
|
||||
id: creationOptions?.rp?.id,
|
||||
},
|
||||
timeout: creationOptions?.timeout,
|
||||
user: {
|
||||
|
|
|
@ -58,6 +58,7 @@ export type WebAuthnCreationOptions = {
|
|||
pubKeyCredParams: PublicKeyCredentialParameters[];
|
||||
rp: {
|
||||
name: string;
|
||||
id: string;
|
||||
};
|
||||
timeout: number;
|
||||
user: {
|
||||
|
@ -75,6 +76,7 @@ export type WebAuthnRequestOptions = {
|
|||
challenge: string;
|
||||
timeout: number;
|
||||
userVerification: UserVerificationRequirement;
|
||||
rpId: string;
|
||||
};
|
||||
|
||||
// page data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue