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
    Ligia
    0

    URL rewriting

    Hi,

    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 63 posts 439 karma points MVP 8x c-trib
    Sep 15, 2015 @ 18:41
    Janae Cram
    0

    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: https://our.umbraco.org/documentation/reference/routing/webapi/

    ~/Umbraco/[YourAreaName]/[YourControllerName]
    

    Hope that helps! :)

    ~Janae

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies