Edgewall Software
Modify

Opened 17 years ago

Closed 17 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: Branch:
Release Notes:
API Changes:
Internal 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 by anonymous, 17 years ago

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 by ebray <hyugaricdeau@…>, 17 years ago

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. Next status will be 'reopened'.
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.