Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael Schwartz 6 posts 76 karma points
    Mar 14, 2023 @ 12:35
    Michael Schwartz
    0

    Redirect an unauthorized user to a URL on auto linking

    Hey,

    I am using the documentation - Authenticating the Umbraco backoffice with Azure Active Directory credentials on my Umbraco 10.4

    https://docs.umbraco.com/umbraco-cms/v/10.latest-lts/reference/security/authenticate-with-active-directory

    The procedure is working fine. the problem is on the part of the OnAutoLinking I am checking if the user is in an Active Directory group. If he is in the code run successfully.

    I need help to set inside the code the option to redirect the user to a URL in case he is not listed in my Active Directory groups.

    Regards, Michael

Please Sign in or register to post replies

Write your reply to:

Draft