Forum Discussion

raguv12ps's avatar
4 years ago

Create custom endpoint to authenticate token/session key

In our community we aren't using the SSO approach, I'm trying to access community pages(Controlled by role permission) from one of our product websites and want some ideas to authenticate the call through a session key/token and create a auto login session with a common community user I created.

I couldn't find much in Docs.
Is there anyway I can achieve this? Any idea is much appreciated as we are working on a short deadline.
Thanks in advance.

4 Replies

  • If you only need to authenticate on that one specific page I would recommend you take a look at the Page initialization script. In there you would check the URL (and probably also if the user is already signed in to community) and then check in before the actual page gets loaded.

  • Thanks Claudius for the response.

    I'm actually not much worried about the page, since my goal is to successfully authenticate the call through some way (Something like a JWT token which is lightweight) and if successful login as a community user which has already predefined roles.

    Is there any khoros API that can create a login session on behalf of the user?

  • Thank you so much Claudius 
    I will look into the shared docs! 🙂