Edgewall Software

Ticket #7192 (closed defect: invalid)

Opened 8 months ago

Last modified 8 months ago

How to create cookie for dbauth with the method hex_entropy.

Reported by: anonymous Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10.2
Severity: normal Keywords: cookie
Cc:

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

Change History

Changed 8 months 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.

Changed 8 months ago by ebray <hyugaricdeau@…>

  • status changed from new to closed
  • resolution set to invalid

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

Add/Change #7192 (How to create cookie for dbauth with the method hex_entropy.)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.