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 , 17 years ago
comment:2 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is more of a support question that you should ask on the MailingList or on the IrcChannel.
Note:
See TracTickets
for help on using tickets.
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.