Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Can I send data from an external page to the vanilla login page?

kudeta21kudeta21 New
edited October 2016 in General Banter

Hi, I want to input my login credentials on my external page, and after submitting, I want the data to appear on the vanilla forum page.

Comments

  • hgtonighthgtonight ∞ · New Moderator

    Yes, but that would probably be a poor implementation.

    What exactly are you trying to achieve?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • I want to register or login thru my homepage .

  • hgtonighthgtonight ∞ · New Moderator

    You are looking for single sign on (SSO). Vanilla offers jsConnect libraries for software that isn't already supported.

    Is your homepage custom software?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • @hgtonight said:
    You are looking for single sign on (SSO). Vanilla offers jsConnect libraries for software that isn't already supported.

    Is your homepage custom software?

    Yes it is custom, but it has no database. it a static page. I want to use the forums database.

  • hgtonighthgtonight ∞ · New Moderator

    Ok, you can just request the sign in form via JS and then they post directly to the forum complete with transient key.

    http://forums.example.com/entry/signin?DeliveryType=VIEW

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • I'm sorry I'm too noob to this :/ can you tell me how?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    @kudeta21 said:
    I'm sorry I'm too noob to this :/ can you tell me how?

    That depends.. If I understand you correctly, you want to use this page as a landing page of your website and you want to add a link to the vanilla sign in form from that page ?

    You could add a link that opens the sign in form. It will redirect the page to the forum once logged in.

    <a href="http://url to your forum/entry/signin">Sign-In</a>
    

    Or do you want to add a sign in form to that page ?

  • @vrijvlinder said:

    @kudeta21 said:
    I'm sorry I'm too noob to this :/ can you tell me how?

    That depends.. If I understand you correctly, you want to use this page as a landing page of your website and you want to add a link to the vanilla sign in form from that page ?

    You could add a link that opens the sign in form. It will redirect the page to the forum once logged in.

    <a href="http://url to your forum/entry/signin">Sign-In</a>
    

    Or do you want to add a sign in form to that page ?

    as of now, i add a link to the vanilla sign in page. but I want to add a sign in form to the landing page

  • R_JR_J Cheerleader & Troubleshooter Munich Moderator

    I'm no JavaScript guy but here is a working example for curl: https://vanillaforums.org/discussion/comment/240977/#Comment_240977

    You would have to do the same steps in JavaScript:
    1. GET request the signin page
    2. extract TransientKey and ClientHour
    3. make a POST request with the fields mentioned in the linked comment
    4. based on the result of the request you would know if the login was successful

    But what I do not understand is that you say that your page is a static page. To my understanding a static page contains all information and doesn't fetch additional information from a server.
    Since the page already contains all information, anyone would be able to see everything by just inspecting the html source code. Why do you need a authentication?

Sign In or Register to comment.