Configure App Widget for OAuth
After you've created a new app widget, you will need to configure the OAuth settings in order for the widget to obtain the necessary permissions from the user. Follow these steps below.
- Navigate to 'Your apps' from the developer dashboard
- Select the app to set up
- Review the Overview tab for correctness
- Provide the following settings under Permissions and OAuth
- Redirect URI - A public URL that our authorization server can redirect to for the OAuth authorization code flow. Do not include any query parameters in this URL.
- Origin - The domain name that will be hosting the widget, for example google.com or mysite.com.
- Webhook URL - A public REST endpoint to receive widget related events from Fluz.
- Under the Configuration tab, select the Features applicable for this widget. During the OAuth authorization code flow, the user will be prompted to approve any selected features the widget will use on their Fluz account. Any unselected features will not be available for the widget and will not be listed for the user to approve.
- Review the 'JS snippet' section. This will include the generated Javascript code for your widget. You can copy and embed this Javascript code into your web application to host the widget.
Updated 25 days ago