Devices
Gets a list of active OAuth2 authorized devices belonging to a user.
Args: offset: Offset for pagination. limit: Limit for pagination. user: The authorized user. user_manager: The user manager.
Returns: List of OAuth2 authorized device objects.
0100Successful Response
Response body for OAuth2 devices.
The OAuth2 device ID.
The name of the OAuth2 device.
The creation date of the OAuth2 device.
The date the OAuth2 device was last updated.
The user ID owning the OAuth2 device.
The client ID of the OAuth2 device.
The expiration date of the OAuth2 device after which the device can no longer be used in the OAuth2 authorized device flow.
Whether the OAuth2 device was marked as trusted. A trusted device has a much longer validity time.
The status of the OAuth2 device.
The operating system of the device used for authentication.
The IP address of the device used for authentication.
The hostname of the device used for authentication.
The city where the device is located.
The region where the device is located.
The country where the device is located.
The date of the last successful login.
Validation Error
Gets a specific OAuth2 authorized device using its unique ID.
Args: device_id_or_user_code: The ID or user code of the OAuth2 authorized device to get. user: The authorized user. user_manager: The user manager.
Returns: A specific OAuth2 authorized device object.
Raises: OAuthDeviceNotFound: If the device with the given ID does not exist, does not belong to the current user or could not be verified using the given user code.
Successful Response
Response body for OAuth2 devices.
The OAuth2 device ID.
The name of the OAuth2 device.
The creation date of the OAuth2 device.
The date the OAuth2 device was last updated.
The user ID owning the OAuth2 device.
The client ID of the OAuth2 device.
The expiration date of the OAuth2 device after which the device can no longer be used in the OAuth2 authorized device flow.
Whether the OAuth2 device was marked as trusted. A trusted device has a much longer validity time.
The status of the OAuth2 device.
The operating system of the device used for authentication.
The IP address of the device used for authentication.
The hostname of the device used for authentication.
The city where the device is located.
The region where the device is located.
The country where the device is located.
The date of the last successful login.
Validation Error
Updates a specific OAuth2 authorized device using its unique ID.
Args: device_id: The ID of the OAuth2 authorized device to update. update: The model containing the attributes to update. user: The authorized user. user_manager: The user manager.
Returns: The updated OAuth2 authorized device object.
Raises: OAuthDeviceNotFound: If the device with the given ID does not exist or does not belong to the current user.
OAuth2 device update model.
The new name of the OAuth2 device.
The new metadata of the OAuth2 device.
Successful Response
Response body for OAuth2 devices.
The OAuth2 device ID.
The name of the OAuth2 device.
The creation date of the OAuth2 device.
The date the OAuth2 device was last updated.
The user ID owning the OAuth2 device.
The client ID of the OAuth2 device.
The expiration date of the OAuth2 device after which the device can no longer be used in the OAuth2 authorized device flow.
Whether the OAuth2 device was marked as trusted. A trusted device has a much longer validity time.
The status of the OAuth2 device.
The operating system of the device used for authentication.
The IP address of the device used for authentication.
The hostname of the device used for authentication.
The city where the device is located.
The region where the device is located.
The country where the device is located.
The date of the last successful login.
Validation Error
Deletes a specific OAuth2 authorized device using its unique ID.
Args: device_id: The ID of the OAuth2 authorized device to delete. user: The authorized user. user_manager: The user manager.
Raises: OAuthDeviceNotFound: If the device with the given ID does not exist or does not belong to the current user.
Successful Response
Validation Error
No content
Last updated
Was this helpful?