Jump to content

Custom Login Redirect from Forum Login


Chris89
Go to solution Solved by Daniel F,

Recommended Posts

So as part of my site integration that I've done, I've added a custom HTML form on my site which will submit login details to the login form on my IPS forum. This works fine, and the user is logged in great. Except when they get logged in, they get redirected back to the forum index, rather than the page they were previously on, on my main site.

I've tried adding a base64 encoded 'ref' query string to the URL to provide a redirect URL (i.e. the URL they are on), but this isn't working. It's not so much that it's not working, but just rather by design from what I can gather. I understand why this security measure is in place, to prevent CSRF attacks etc and to prevent redirect to malicious websites.

My question really, is, is there some way I can allow IPS to redirect back to my own domain from the login form & the page they were previously on, while keeping this protection in place? It isn't on a seperate subdomain or anything, both the forum and my site are running off the main domain. The only difference is that my forum is in a 'forums' subfolder, and it's redirecting back out of there that I can't currently do. Is this possible?

I don't really want to have to modify the core IPS files, so an extension would be better if I have to do any development, but I'd appreciate any advice and guidance on this issue.

Thanks guys

Link to comment
Share on other sites

  • 2 months later...

Has this been implemented yet? If so are you able to let me know where abouts in thev PHP this has been done? I've checked the latest version but the login cofde still seems the same... I'm trying to integrate it with my SSO.

Edited by Chris89
Link to comment
Share on other sites

On 2/23/2021 at 7:27 PM, Chris89 said:

Has this been implemented yet? If so are you able to let me know where abouts in thev PHP this has been done? I've checked the latest version but the login cofde still seems the same... I'm trying to integrate it with my SSO.

I expect the next release he was alluding to is 4.6, given that his post was in November and we haven't put out a major maintenance release since then.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...