No, I created that graphic. I think the whole flow is very self-explanatory. Isn't it ?
Do you think the desktop app has to use some custom-url-scheme ??
SAML desktop app integration
Hello,
I have SAML based desktop app on Win10 box.
So I believe, I will NOT get help from MSAL library or WAM/broker
That’s fine because app can open the browser, redirect the user to the cloud-counterpart of the app to generate SAML-request and route the user to AAD to complete authentication.
AAD will send SAML-assertion to cloud-counterpart of the app to validate, generate some proprietary token for the desktop-app and finally the browser will relay it to the desktop-app.
This last point is where I am not sure how browser can invoke the desktop-app (step #8 and #9) and fade itself out so that desktop-app can now take the control and let the user in the app.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
4 answers
Sort by: Most helpful
-
testuser7 286 Reputation points
2021-07-29T18:44:09.053+00:00 -
DE 6 Reputation points
2022-10-30T03:55:44.613+00:00 I get what you are asking as it is good to know how to deal with the Windows App SAML piece, as SAML operates in web context - but the image is wrong and confusing some
The Desktop App "is" actually the SP (even if there is a web window) and it talks to the IdP directly, there is no redirect to the SP. I would put the Azure AD on the far right side.
Basically:
- Login Initiation (SP Initiated flow)
- Redirect to IdP
- Then back to User for Authentication
- Then SAML Assertion back to SP
- Auth Token Issued
It is my understanding that the SAML web session should be able to set a value on the machine which can be validated by the windows app. This is basically what Outlook does with Modern Auth.
-
DE 6 Reputation points
2022-10-30T03:59:36.62+00:00 The following article looks like it is what you need if still and issue
https://kvonkonigslow.medium.com/integrating-a-saml-authenticated-service-with-a-net-desktop-application-using-webview2-b4b3a6c263da -
testuser7 286 Reputation points
2022-10-31T11:59:26.397+00:00 Thanks. Will look into it.