Why use a 1-time login link?
A 1-time login link enables you to control access to the Go1 Catalogue from within your application, giving you the flexibility to generate access on demand and without having to store multiple authentication tokens.
Each 1-time link used to generate a login is based on a given access token - whomever the token belongs to will be who the Go1 catalogue is authenticated as.
How do I generate the link and display the Go1 Catalogue?
Step 1. Generate the 1-time login link
The iframe can be provisioned by requesting the Go1 API for a login for a single user.
When specifying the redirect_url ensure that this redirects back to the page within your application that the iframe will display on.
Additionally, you can customize what is displayed within the Go1 Catalogue by appending this redirect URL with configuration options for the content selector. View {{link}} for more information.
https://api.go1.com/v2/me/login?redirect_url=/r/app/content-selector?embedded=true
This will return a 1-time link that you will then use to generate the iframe within your application.
Step 2. Embed the Go1 Catalogue within an Iframe
Once you have your 1-time login link, you need to place that link as the source for the content of the iframe which will display the Go1 Catalogue to the user within your application.
<iframe width="100%" height="900px" src="https://customersGo1Portal.mygo1.com/r/app/content-selector?oneTimeToken={{token}}" id="iFrame" style="border: none;"></iframe>
Recommended dimensions: