After creating your App Client, you must modify its settings to support OPKSSH redirect URIs and required OIDC scopes:
1. Edit Login Info
In your User Pool, go to "App clients" > [Your App Name] > "Login pages" > "Edit".
Under "Allowed callback URLs", add the following three URLs:
http://localhost:3000/login-callback
http://localhost:10001/login-callback
http://localhost:11110/login-callback
Under "OpenID Connect Scopes", you MUST remove Phone and add Profile. The required scopes for OPKSSH are openid, profile, and email.
Click "Save Changes".
2. Add a Managed Login page
If your app does not have a managed login style (indicated by a - in the "Managed login style" section):
- Go to "Managed login" in the left-hand sidebar.
- Under "Styles", click "Create a new style".
- Select your app and click "Create".