Edgewall Software
Modify

Opened 9 years ago

Closed 9 years ago

#7192 closed defect (invalid)

How to create cookie for dbauth with the method hex_entropy.

Reported by: anonymous Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.10.2
Severity: normal Keywords: cookie
Cc:
Release Notes:
API Changes:

Description

I have installed the plugin for dbauth. But I want to login to my trac system from my Java code. So I wonder how can I create the cookie and insert the cookie information into the table "trac_cookies". In that case, once I have inserted such information into the trac_cookies table the user will be authenticated automatically.

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by anonymous

In addition, in the auth.py file I can see that after the user login, the system will call the method "_do_login" and it will generate a cookie for the user by calling the method "hex_entropy()". However, I am not a python developper. So can anybody give me a hand and tell me how is the cookie generated? So I can generate a cookie by myself and insert it into my table.

comment:2 Changed 9 years ago by ebray <hyugaricdeau@…>

Resolution: invalid
Status: newclosed

This is more of a support question that you should ask on the MailingList or on the IrcChannel.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .

 
Note: See TracTickets for help on using tickets.