Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2687 closed enhancement (fixed)

Use name instead of url?

Reported by: docwhat Owned by: dalius
Priority: normal Component: AuthOpenIdPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


Is it possible to use the name in UI instead of the URL? I have no idea if that's a track feature or an openid feature.

Example: Create a new ticket. The user who created the ticket will be I'd like it to say "My name"


Attachments (0)

Change History (13)

comment:1 Changed 7 years ago by dalius

  • Resolution set to wontfix
  • Status changed from new to closed

That's not issue of this plugin. Please register similar ticket in trac's trac. I can't do anything here. Actually I doubt that this issue will be fixed in original trac because name is saved in session in original trac. That's very strange behavior in my opinion but that's their decision. I have done everything that name of user is taken from sreg and placed in preferences.

The ticket in trac's trac should ask for using name from preferences instead of login name (in this case OpenID url). It might be possible that there is option to act in this way in trac but I'm not sure.

I personally wouldn't recommend this because you will not be able if two users with same name but different OpenID's are different actual.

comment:2 Changed 7 years ago by docwhat

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Okay, I've done a little research and it looks like there is a feature in trac.ini to not use email address (which I would assume that email addresses correspond to the URL?)

It's: [trac] show_email_addressess

It's set, by default in 0.11, to false. It looks like it does something similar to what I'm asking for, but it (at the moment) only works for email style logins. I'm not entirely sure about this, though, because I don't have a setup that doesn't use your excellent plugin.

In addition, it'd be nice if the user URLs were shown with out the http:// and trailing / to make them look nicer.


comment:3 Changed 7 years ago by dalius

That's possible. I will look into this. While there is difference between http:// and https:// but usually it is the same user.

show_email_addressess is good alternative but in your place I registered new ticket for trac that should user user name but not obsfucated mail :)

comment:4 Changed 7 years ago by dalius

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:5 Changed 7 years ago by docwhat

I tried to get it to work and I don't see it's effect. Where should I see this effect?

I have enabled it in the configuration.


comment:6 Changed 7 years ago by dalius

Have you put it in [openid] section and set to true like in

Instead of your OpenID like you should see (I don't know what's your OpenID that's just guess). E.g. in top right corner where is written who has logged in. HTH.

comment:7 Changed 7 years ago by docwhat

Yes; I cut and pasted from your example.

In my upper right corner, I see "The Doctor What". I was thinking more for tickets. I created some dummy tickets and comments and they still show (my openid) as the ticket submitter and the commentor.


comment:8 Changed 7 years ago by dalius

Old tickets will have http://. This fix does not and even can not solve this problem. New tickets should be OK.

comment:9 Changed 7 years ago by docwhat

Does that include comments, though? Because my comments had the http:// as well.

comment:10 Changed 7 years ago by docwhat

And I just tested it and a new ticket has the http:// in front by default. I can try to remove the http:// manually, but I thought this was automatic.

comment:11 Changed 7 years ago by anonymous

Yes, that includes comment. Here is one of my tracs:

Please note ticket is reported and comments are written by The only problem I had that ticket by default was owned by However it is not related with login default owner can be changed by administrator for each component.

In addition I will strip trailing slash as well :)

comment:12 Changed 7 years ago by anonymous

strip_trailing_slash option added.

comment:13 Changed 7 years ago by docwhat

Okay, I figured out why it didn't seem to work before. You have to log out and log back in for the various strip* options to work.



Add Comment

Modify Ticket

as closed The owner will remain dalius.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.