SAML desktop app integration

testuser7 286 Reputation points
2021-07-29T14:18:23.867+00:00

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.

119058-image.png

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

4 answers

Sort by: Most helpful
  1. testuser7 286 Reputation points
    2021-07-29T18:44:09.053+00:00

    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 ??


  2. 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:

    1. Login Initiation (SP Initiated flow)
    2. Redirect to IdP
    3. Then back to User for Authentication
    4. Then SAML Assertion back to SP
    5. 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.

    0 comments No comments

  3. DE 6 Reputation points
    2022-10-30T03:59:36.62+00:00
    0 comments No comments

  4. testuser7 286 Reputation points
    2022-10-31T11:59:26.397+00:00

    Thanks. Will look into it.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.