Jump to content
  • 0

More info for [@authfield:FIELDNAME]


allansheth
 Share

Question

Can someone provide more information or documentation for the usage of the [@authfield:FIELDNAME] method for accessing a field value from the authentication table;

AND

Once a user is authenticated, is this method available to use on any datapage regardless of whether the datapage is in an authentication controlled folder or not?

I read about it in a previous post but have not been able to figure it out...if true the documentation is non-existent.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi Allan,

If the form is authenticate in Caspio Bridge you can get the authentication table info calling the variable as [@authfield:FIELDNAME]

for example in the header of your DataPage you could have

Welcome [@authfield:First_Name]! just to welcome the user who logged in. However if the DataPage is not quthenticated meanning that it is not inside an authenticated folder so there is no authentication and no session to keep track.

Best,

B. M.

Link to comment
Share on other sites

  • 0

Hi Bahar,

Thanks for the follow up. I understand what you were saying. But my intention (and I suspect the desire of many other users) would be to access the authenticaton info outside any datapage (authenticated or otherwise).

Using the example you just gave, it would be best implemented outside the datapage (in the upper right corner of the web page containing the datapage to show the user who's logged in and to allow them to modify their account settings). Presenting the information withing the datapage would be non-standard and not typical of the numerous web sites that the users would be familiar with (Amazon, etc.).

I don't see why once authenticated that info cannot be persisted and accessed outside any authintication framework to assist a developer in tieing an application together.

Is there a way to pass the caspio authentication info to session variables on the users server for future access during the session? Would it be possible to create a datapage that sets session varibles on the user's web server? I'm not sure how this would be implemented...

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...
 Share

×
×
  • Create New...