Copied to clipboard

Flag this post as spam?

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

  • Ligia 15 posts 74 karma points
    Sep 15, 2015 @ 18:07

    URL rewriting


    I've got an issue. I'm using umbraco for an website and I use an external auth provider. The redirect url I've got is something like this: mydomain/auth/token?t=44514544164. I somehow need to get the request to a surface controller.

    I've tried something like routes.MapRoute( "ticket_validate", "auth/token/{t}", new { controller = "Auth", action = "Token" } );

    Do you have any ideas how I can solve this?

  • Janae Cram 55 posts 385 karma points MVP 4x c-trib
    Sep 15, 2015 @ 18:41
    Janae Cram

    Hi Ligia!

    I think you would want to do this through an API Controller and not directly a surface controller. Umbraco provides information on setting up API Controllers here, including the routes you would want to use to post your request to:


    Hope that helps! :)


Please Sign in or register to post replies

Write your reply to: