Jump to content
  • 0

Redirect user if not logged in


RogerMoquin

Question

4 answers to this question

Recommended Posts

  • 2

For anyone trying to accomplish this it is really easy.

No need to use the method on the link posted above.

Just open your authentication object in Caspio Bridge and expand the Advanced settings.  Then set the Timeout option to Other Webpage and enter your standalone login page location.

Then once your dashboard/main app page has at least one datapage that requires authentication and the user is not logged in they will be redirected to your standalone login page.

Link to comment
Share on other sites

  • 0
31 minutes ago, RogerMoquin said:

When a DataPage needing authentication is targeted I want the user to be redirected to /login.html when NOT authentificated. 

I used the code from step 2 in this thread

Is something missing ?

 

You need to specify the designated entry page. Edit the authentication and expend the advanced settings. Then edit Timeout and redirection. In the  Designated entry page: select go to a new page and paste an URL where you have deployed the login screen.

 

Hope it helps :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...