Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Correlation Cookie not found when user click link from Office application #1252

@jesong

Description

@jesong

If you have a link in microsoft office(Excel, Powerpoint, Word), and the target linked used OpenIdConnect with automatic challenge. When you ctrl+click on the link in office application, You'll see following error from server log:

2017-06-08 07:51:21.307 +00:00 [Information] HttpContext.User merged via AutomaticAuthentication from authenticationScheme: "Cookies".
2017-06-08 07:51:21.932 +00:00 [Warning] '".AspNetCore.Correlation.OpenIdConnect.mVRDSZb8AZUAlSv_hIBeK3Uri5cJHtu4fNDv1skOTYE"' cookie not found.
2017-06-08 07:51:21.932 +00:00 [Information] Error from RemoteAuthentication: "Correlation failed.".

This is because the cookie is generated with the 302 redirection from challenge action. But office has following issue that caused the cookie missing in browser:

https://support.microsoft.com/en-us/help/899927/you-are-redirected-to-a-logon-page-or-an-error-page-or-you-are-prompted-for-authentication-information-when-you-click-a-hyperlink-to-a-sso-web-site-in-an-office-document
https://stackoverflow.com/questions/2653626/why-are-cookies-unrecognized-when-a-link-is-clicked-from-an-external-source-i-e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions