Create a Connect Webview
To allow a user to sign in, you need to create a connect_webview . After creating the webview, you'll receive a URL that you can use to open an iframe or new window containing a login page for your us
Create a connect_webview
POST
https://connect.getseam.com/connect_webviews/create
Request Body
Name | Type | Description |
---|---|---|
accepted_providers* | string[] | |
custom_redirect_url | String | URL to redirect user to after provider login is complete |
custom_redirect_failure_url | type: string Optional | Alternative URL to redirect the user on error. If this is not set, falls back to
|
device_selection_mode | String | 'none', 'single' or 'multiple' |
Code Example
You should make a new connect_webview
for each unique login request: Each connect_webview
tracks the user that signed in with it. You receive an error if you reuse a Connect Webview for the same user twice or if you use the same Connect Webview for multiple users.
Parameters
| type: string | Specifies the category of providers to include. Supported categories:
|
| type: string[] | Array of accepted device provider keys and an alternative to |
| type: string Optional | URL to redirect user to after provider login is complete |
| type: string Optional | Alternative URL to redirect the user on error. If this is not set, falls back to |
| type: 'none' | 'multiple' |
| type: 'boolean' | Indicates whether newly added devices should appear as managed devices
Default: |
Response
This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.
JSON format
Last updated