Sign in with OpenPage adheres to OAuth2.0 and OpenID Connect making it compatible with any platform that supports these standards. Custom implementations can be accomplished using the Connect APIs directly.
Quick Start
View our example NextJS project to easily get started with OP Connect.Getting Started
1
Obtain and setup required config
SESSION_SECRET
— a randomly generated, strong password of at least 32 charactersNEXT_PUBLIC_SIWOP_CLIENT_ID
- your client id obtained in the OpenPage PortalSIWOP_CLIENT_SECRET
- your client secret obtained in the OpenPage PortalNEXT_PUBLIC_SIWOP_REDIRECT_URI
- your redirect_uri, this must match what is defined for your client in the OpenPage Portal
The NEXT_PUBLIC_SIWOP_CLIENT_ID
and NEXT_PUBLIC_SIWOP_REDIRECT_URI
must match what is defined for your app in the OpenPage Portal.
2
Install the required dependencies
3
Configure the client and context
4
Configure the required server API routes
Create a file inside your Next API folder
api/siwop/[...route].ts
.5
SIWOP Button
Add the SIWOP button to your app.