This page describes the authorization flow.
In order to work an application must be registered in the developer portal with:
More information on the Authorization Flow can be found here.
Steps to authorize an application

For more information - refer to the official Home Connect Authorization Flow Description.
How to authorize Home Connect driver to backend servers
There are three ways of authorizing the module with the backend servers are supported which depend on the passed parameters:
Regardless of the chosen way for authentication, username and refresh_token is persisted.
On system restart/expire of access_token renew token with persisted refresh_token is done(having already valid refresh_token)