Copied to clipboard

Flag this post as spam?

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


  • Enrico Magboo 7 posts 127 karma points
    Nov 29, 2016 @ 05:55
    Enrico Magboo
    0

    How to integrate my Umbraco website to existing website that has login page

    Hello guys,

    Would like to consult how we can integrate our existing website with login to the Umbraco website? From the diagram, we want to pass the username & password values @pt 1 when the link is clicked @pt 2. As a result, the textboxes username & password will have pre-values @pt 3 and the user will manually click the submit button or if Umbraco can do it automatically to display the homepage of the existing website as shown @pt4.

    Can this be done fully from the Umbraco backoffice? (without additional coding in VS and recompiling)

    Edit: Note: - @pt 1 diagram in not the Umbraco's backoffice login but a user defined page

    Umbraco Integration to existing website with login

  • Jonathan Richards 288 posts 1742 karma points MVP
    Nov 30, 2016 @ 15:46
    Jonathan Richards
    100

    Hi,

    I'm gonna presume that everything in the diagrams already exists, and what is missing is the Red Arrow, where a user clicks a magic link and they jump from pt 2 to pt 4 without seeing pt 3.

    Lets presume pt 3, the third party login page, is using a standard post back to submit the user name and password. Then yes, you could emulate that using some jquery (For example) to make a cross site postback. What would be sent, the exact format of the user name and password sent depends entirely on how your third party login page works in pt 3.

    One issue, is that by standard, membership passwords in Umbraco are stored as a hash, that so can't be extracted. So, to be able pass the correct password to your third party login page, you will need to be able to change the password so that it can be retrieved.

    So no, this can't be done without writing some code. Someone would need to write some Razor code to output the current Username and Password on pt 2 and also some jQuery to pass that to pt 3

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft