0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: update code

This commit is contained in:
Darcy Ye 2024-11-22 12:39:59 +08:00
parent 6faece8107
commit 0f1c9c1477
No known key found for this signature in database
GPG key ID: B46F4C07EDEFC610

View file

@ -7,9 +7,9 @@ export const samlAttributeMappingGuard = z.record(
z.string()
) satisfies z.ZodType<SamlAttributeMapping>;
// Only support SP HTTP-POST binding for now.
export enum BindingType {
POST = 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST',
REDIRECT = 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect',
}
export type SamlAcsUrl = {
@ -18,6 +18,6 @@ export type SamlAcsUrl = {
};
export const samlAcsUrlGuard = z.object({
binding: z.nativeEnum(BindingType).optional().default(BindingType.POST),
binding: z.nativeEnum(BindingType),
url: z.string(),
}) satisfies ToZodObject<SamlAcsUrl>;