Remove await
This commit is contained in:
parent
4fdf5e9674
commit
1e0dd8feea
@ -34,8 +34,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
user: user,
|
user: user,
|
||||||
});
|
});
|
||||||
|
|
||||||
const signingKey = await fetchPrivateKey();
|
const signingKey = fetchPrivateKey();
|
||||||
const publicKey = await fetchPublicKey();
|
const publicKey = fetchPublicKey();
|
||||||
const xmlSigned = await signResponseXML(xml, signingKey, publicKey);
|
const xmlSigned = await signResponseXML(xml, signingKey, publicKey);
|
||||||
|
|
||||||
const encodedSamlResponse = Buffer.from(xmlSigned).toString('base64');
|
const encodedSamlResponse = Buffer.from(xmlSigned).toString('base64');
|
||||||
|
|||||||
@ -20,7 +20,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
|
|||||||
const xml = await createIdPMetadataXML({
|
const xml = await createIdPMetadataXML({
|
||||||
idpEntityId: config.entityId,
|
idpEntityId: config.entityId,
|
||||||
idpSsoUrl: config.ssoUrl,
|
idpSsoUrl: config.ssoUrl,
|
||||||
certificate: await fetchPublicKey(),
|
certificate: fetchPublicKey(),
|
||||||
});
|
});
|
||||||
|
|
||||||
res.setHeader('Content-type', 'text/xml');
|
res.setHeader('Content-type', 'text/xml');
|
||||||
|
|||||||
@ -9,7 +9,7 @@ export const getStaticProps: GetStaticProps = async () => {
|
|||||||
const metadata: IdPMetadata = {
|
const metadata: IdPMetadata = {
|
||||||
ssoUrl: config.ssoUrl,
|
ssoUrl: config.ssoUrl,
|
||||||
entityId: config.entityId,
|
entityId: config.entityId,
|
||||||
certificate: await fetchPublicKey(),
|
certificate: fetchPublicKey(),
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user