There is a desktop application connects to an API server which this API server has been defined as a IdentityServer4.Models.ApiResource
in the authentication server.
Also, there is a web application (a IdentityServer4.Models.Client
) that this desktop application is willing to show in its web-view form (using QWebEngineView in Qt).
The user in that desktop application connects to the authentication server (using GrantTypes.ResourceOwnerPasswordAndClientCredentials
) when he/she want to communicate with the API server.
From then the authentication token passes through a bearer header.
So, we have these applications:
- authentication server
- standalone web application (use authentication server for authentication)
- API server
- desktop application (connects to the API server and willing to show the web server in itself)
How is it possible to for the web application inside that desktop application to recognize the user and not to ask for her user and password again after successfully connected to the API server?