import { GetStaticProps } from "next"; import { IdPMetadata } from "../types"; import config from "../lib/env"; import { fetchPublicKey } from "../utils"; import React from "react"; import Link from "next/link"; import Head from "next/head"; export const getStaticProps: GetStaticProps = async () => { const metadata: IdPMetadata = { ssoUrl: config.ssoUrl, entityId: config.entityId, certificate: await fetchPublicKey(), }; return { props: { metadata, }, }; }; const Home: React.FC<{ metadata: IdPMetadata }> = ({ metadata }) => { return (
SSO URL
{metadata.ssoUrl}
Entity ID
{metadata.entityId}
Certificate
{metadata.certificate}
Download Metadata