import { GetStaticProps } from 'next'; import Head from 'next/head'; import Link from 'next/link'; import React from 'react'; import config from '../lib/env'; import { IdPMetadata } from '../types'; import { fetchPublicKey } from '../utils'; 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