2. Create your redirect page

The purpose of this page is simply to post information in your browser so that your original client page can get the information. This is the page that will be referenced in your redirect_uri in the client.html page above.
Using the oidc-client library makes it easy to create a redirect page. The code sample below is all that is needed to properly process the Open Id response and post that back to the client page.

❗️

Don't forget!

In order for this to work, the URL to this page must be registered with Seismic!

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="utf-8" />
</head>
<body>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.6.1/oidc-client.min.js"></script>
    <script>
        // If you want to use the popup flow, use the line below
        new Oidc.UserManager().signinPopupCallback();
        
        // If you want to use the silent flow, use the line below
        /*
        new Oidc.UserManager().signinSilentCallback();
        */ 
      
        // If you want to use a redirect flow, use something like below
        /*
        new Oidc.UserManager().signinRedirectCallback().then(function () {
            window.location = "index.html";
        });
        */
      
    </script>
</body>
</html>