Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message "You are currently not logged in. You may want to do so now." leads to error page #95

Closed
rjollos opened this issue Jan 25, 2016 · 5 comments

Comments

@rjollos
Copy link
Member

rjollos commented Jan 25, 2016

On navigating to a page which the user doesn't have permission to view the following message is displayed: You are currently not logged in. You may want to do so now. The phrase do so is a link to /login. When using trac-github plugin the login path is /github/login. It can be seen here that clicking on do so links to an error page No handler matched request to /login.

Was the intent of using /github/login as the path to allow trac-github to function side-by-side with Trac's login module?

@aaugustin
Copy link
Contributor

/login points to username/password authentication on code.djangoproject.com for which I originally developed the plugin. I'm OK with either removing the link and letting the user figure it out -- login links aren't far -- or pointing it to /github/login, as you wish.

@rjollos
Copy link
Member Author

rjollos commented Jan 26, 2016

The message with link is added by _send_user_error. The only possibility I see is to remove or replace the link using JavaScript. I opened a ticket trac:#12332 to discuss.

@rjollos
Copy link
Member Author

rjollos commented Mar 16, 2016

Another option would be to have a configuration option [github] use_login_path, and have it default to False. When True, the path /login would be used for the IRequestHandler.

Or we can get the same effect using a variable like [github] login_path_prefix, and have it default to /github.

login_path = '/%s/login' % self.login_path_prefix.strip('/')

@rjollos
Copy link
Member Author

rjollos commented Mar 16, 2016

Additional thoughts in trac:#12332:comment:3.

@rjollos
Copy link
Member Author

rjollos commented Jun 2, 2017

Proposed fix in #127.

rjollos added a commit that referenced this issue Jun 19, 2017
@rjollos rjollos closed this as completed Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants