Dear John Doe,
User foo-usr just registered a new OAuth client under user foo-usr on The Things Network.
Since user foo-usr is not an admin, you need to approve this client before it can be used.
Client ID: foo-cli
Name: Foo Client
Description: Foo Client Description
Grants:
GRANT_AUTHORIZATION_CODE
authorization code
Rights:
RIGHT_USER_INFO
view user information
RIGHT_USER_APPLICATIONS_LIST
list applications the user is a collaborator of
RIGHT_USER_ORGANIZATIONS_LIST
list organizations the user is a member of
RIGHT_ORGANIZATION_INFO
view organization information
RIGHT_ORGANIZATION_APPLICATIONS_LIST
list the applications the organization is a collaborator of
RIGHT_APPLICATION_INFO
view application information
RIGHT_APPLICATION_SETTINGS_BASIC
edit basic application settings
RIGHT_APPLICATION_DEVICES_READ
view devices in application
RIGHT_APPLICATION_DEVICES_READ_KEYS
view device keys in application
RIGHT_APPLICATION_DEVICES_WRITE
create devices in application
RIGHT_APPLICATION_DEVICES_WRITE_KEYS
edit device keys in application
Redirect URIs:
https://example.com/oauth/callback
Logout Redirect URIs:
https://example.com/logout/success
You can use the command-line interface to approve (or reject) the OAuth client:
$ ttn-lw-cli clients set foo-cli \
--state APPROVED (or REJECTED) \
--state-description "..."
For more information on how to use the command-line interface, please refer to the documentation.