OAuth2 Login
This view can be used for devices that need OAuth2 authorization. When it's successful, it will automatically proceed to the next view.
Usage: "template": "login_oauth2"
The example below is for completeness only. Pleaser read OAuth2 to learn how to integrate with OAuth2 APIs the easy way.
{
"name": { "en": "My Driver" },
"images": {
"small": "/drivers/my_driver/assets/images/small.png",
"large": "/drivers/my_driver/assets/images/large.png"
},
"pair": [
{
"id": "login_oauth2",
"template": "login_oauth2",
"options": {
"hint": "Login with your credentials",
"button": "Log-in"
}
},
{
"id": "list_devices",
"template": "list_devices",
"navigation": { "next": "add_devices" }
},
{
"id": "add_devices",
"template": "add_devices"
}
]
}Options
Key
Type
Default
Description
When either hint or button are set to a value, a button will appear and wait for the user to click it before opening the popup.
Last updated
Was this helpful?