× Requests and support related to jBackend.

Persistent authentication - how to?

More
9 years 1 month ago #3778 by larpo
Replied by larpo on topic Persistent authentication - how to?
Excellent - thank you. Look forward to seeing it.

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

More
9 years 1 month ago #3779 by admin
Replied by admin on topic Persistent authentication - how to?
I will advise you.

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

More
9 years 1 month ago #3781 by larpo
Replied by larpo on topic Persistent authentication - how to?
HI again. Thanks.

On the subject of token based authentication do you think this:
taskboy.com/blog/Token_based_single_sign_on_for_Joomla.html

can be made to work with jbackend?

The general guidance on the ionic forum seems to be token based authentication is a much safer solution than storing a cookie. What do you think?

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

More
9 years 1 month ago #3783 by admin
Replied by admin on topic Persistent authentication - how to?
Hi,
as I already told in this 3d, I tried to support the token. I have checked it again now and I can (unfortunately) confirm that there is no "clean" way to do this. Joomla inits the session before to trigger any event, and the session initialization sets and uses the cookie.
Your example allows the authentication with a token, but the problem is not with the authentication itself, we can login the user in any way. The problem is with the user's session which is retrieved by Joomla using only the session cookie. So I should authenticate the user on each request and however the saved state is not available (no previous state, no history, no transactions).

Kind regards,
Luigi

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

More
9 years 1 month ago #3795 by admin
Replied by admin on topic Persistent authentication - how to?
Hi,
as promised here you can download the CRUD demo module:

www.selfget.com/downloads/file/42-plg-jbackend-tags-crud-j30.html

Now the rest is up to you... ;)

Kind regards,
Luigi

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

Time to create page: 0.139 seconds