Hey, I've got an HTML article that will use the new setAuthToken API to provide a custom authentication to the user, and I can call it with a authToken that is authorised on the entitlement to login the user from the article.
However, I'm having an issue setting up the Custom Identity Provider required for this API to work. I've configured the project settings to use a custom IdP, and created a page that will check the credentials and get an authToken back. Now went the user selects Sign In from the Account model a web view pops up with the IdP login page. Once the user logs in were do I redirect to pass the authToken back to the APP? I can see the https://es.publish.adobe.com/oauth2 URL in the case of the Outh, but don't see any for the Custom Idp... Has this been setup yet?
In your Generic Identity Provider set up, the authentication URL should be the page you created to check the credentials. When this page is launched from the viewer, there are several query parameters that are passed along with it. This includes:
redirectUri: The generic authentication callback URI.
projectId: The application's project's ID.
appId: The ID of the viewer application.
appVersion: The version of the viewer application.
uuid: The identifier for the device.
Your page should parse the redirectUri out of the URL parameters, and redirect to it when your authentication is complete. When redirecting to this redirectUri, you can include the following information back to the application:
authToken: authToken of the user after successful login.
expiresIn: Optional duration in seconds before the authToken expires.
error: Error message after login failure. Either error or authToken must be specified but not both.