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

Add code to have authopenid handle /login #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

puiterwijk
Copy link
Contributor

This code makes it possible to have authopenid take /login.
This is useful because all trac's "not authorized" messages are hardcoded to point to /login, and if openid is the only allowed provider, this leaves users with a 404.

@dairiki
Copy link
Contributor

dairiki commented Jun 29, 2013

I will look into this further in a couple of weeks, when I return from vacation.

In the mean time, note the that hardcoded urls to the /login page can be suitably mangled by including something like:

<a py:match="a[@href='/env/login']" href="/env/openidlogin">
  ${select("*|text()")}
</a>

in your env/templates/site.html.

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

Successfully merging this pull request may close these issues.

2 participants