Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Frontend Userlist Guest Access Based on Token possible?

  • xengent
  • xengent
  • OFFLINE
  • Posts: 54
  • Thanks: 2
  • Karma: 0
8 years 10 months ago - 8 years 10 months ago #274967 by xengent
I need to have certain users access a user list using a specific search parameter, to check certain things. So for example I would give them the user list's URL and a search parameter would be appended by them externally, and the page would show the search results.

I want to avoid them having to login (unless there is a way to have them login via autoactions and be directed to the list automatically with that search parameter being passed on after the login action).

Otherwise, I can just have them access it as a guest, and have them use a Token ID, since I still want to protect that information.

Is there a way to do this all in one URL request? Either:

A. One URL logs them in that has the search parameter and they are redirected to that userlist with that parameter being passed on so they see the results page

or

B. One URL that targets the list with a Token ID (auth code/password etc.) that they only would have, which displays the results of that userlist.
Last edit: 8 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #275020 by nant

xengent wrote: I need to have certain users access a user list using a specific search parameter, to check certain things. So for example I would give them the user list's URL and a search parameter would be appended by them externally, and the page would show the search results.

I want to avoid them having to login (unless there is a way to have them login via autoactions and be directed to the list automatically with that search parameter being passed on after the login action).

Otherwise, I can just have them access it as a guest, and have them use a Token ID, since I still want to protect that information.

Is there a way to do this all in one URL request? Either:

A. One URL logs them in that has the search parameter and they are redirected to that userlist with that parameter being passed on so they see the results page

or

B. One URL that targets the list with a Token ID (auth code/password etc.) that they only would have, which displays the results of that userlist.


Hi and thanks for posting.

As this request is out of scope of normal usage and requires (if doable) code proposal from developers our response might take some time.

I am bookmarking this for our developer team to reply to as soon as possible.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
8 years 10 months ago #275183 by krileon
Using CB Auto Actions acting on onBeforeDisplayUsersList with a Redirect action you can condition for whatever token you want under Conditionals. If the condition fails specify a redirect URL to redirect away. Condition example as follows.

[var1_listid] Equal To USERLIST_ID_HERE
[get_token] Not Equal To TOKEN_HERE

I think the issue will be when you perform a search since the token won't be a part of the GET/POST data. You'd probably need to take this a step further and use a Code action to add a hidden input to the form with the token so it can be conditioned on search and paging.

It's possible to login using CB Auto Actions, but I really don't recommend it as you're going to have security issues trying to do that from URL. The safest way to do what you're wanting is to just require them to manually login and protect the userlist using proper ACL.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum