Name | Use case |
---|---|
Authorization Code | Cloud Application with a Backend |
Authorization Code with PKCE | Public Application like a web app or an App without a Backend |
Device Code | IoT Device with a Display |
Client Credentials | IoT Device without a Display |
Name | Url |
---|---|
Base Url | https://api.smart-me.com |
Authorization | /oauth/authorize |
Token | /oauth/token |
Device Code | /oauth/device |
-
App makes an auth request and shows the login page
-
User accept that this app can access to the smart-me data
- The register deeplink (mysampleapp://callback/ in the sample) is called and the access and refresh token is returned.
- Go to https://www.smart-me.com and login with your smart-me Account
- Go to the API Settings and create an "Public" OAuth Application. As redirect URL choose the deep link defined in the Maui App
The device code can be used to give a IoT Device access to the smart-me Api. This without the need to enter and store the username and password on the device.
-
Device makes an authorize call to /oauth/device
-
The device shows the device code on the screen (e.g. 0648-9465-6349)
-
The user goes to https://api.smart-me.com/oauth/verify
-
The user logs in with his smart-me account:
-
The user enters the code from the device
-
The user accecpt that the device will has access to his data:
-
The device gets the Access Token and can use that for the API
- Go to https://www.smart-me.com and login with your smart-me Account
- Go to the API Settings and create an "Public" OAuth Application
- Copy the ClientId into your device firmware