question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incomplete auth system urls

See original GitHub issue

in the base.html template, there is this code:

{% if request.user.is_authenticated %}
  <li class="nav-item">
  <a class="nav-link" href="{% url 'users:detail' request.user.username  %}">{% trans "My Profile" %}</a>
  </li>
  <li class="nav-item">
  <a class="nav-link" href="{% url 'account_logout' %}">{% trans "Sign Out" %}</a>
  </li>
{% else %}
  <li class="nav-item">
  <a id="sign-up-link" class="nav-link" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a>
  </li>
  <li class="nav-item">
  <a id="log-in-link" class="nav-link" href="{% url 'account_login' %}">{% trans "Sign In" %}</a>
  </li>
{% endif %}

but ‘account_signup’, ‘account_login’, and ‘account_logout’ are not named url’s defined in any urls.py in the project. is this intentional and the user is expected to provide these routes/functions themselves? seems like there should at least be placeholders for them.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
webynetercommented, Apr 14, 2017

@pydanny, my pleasure 👍

0reactions
pydannycommented, Apr 14, 2017

Excellent question @chrickso. Added a383fa23788e976a6d9f30a2425cb33394042ce6 to clarify things.

Thanks @webyneter for the answer. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authentication even with incomplete password
Any decent authentication scheme shouldn't rely on the individual characters of the passwords. The user enters the password and it is hashed and ......
Read more >
/userInfo returns incomplete information if logged in passing ...
I login with AuthLock 10.18 and Authorization Code Grant flow, specifying my own audience (https://thisIsMyTest) and the scopes I want.
Read more >
Can I use HTTP Basic Auth in URLs? - Dan Q
Go to http://<username>:<password>@<domain>/mandatory (authentication is mandatory). Experiment 1, then f0llow relative hyperlinks (which should ...
Read more >
What is OAuth and How Does it Work? - TechTarget
OAuth (Open Authorization) is an open standard authorization framework for token-based authorization on the internet. OAuth, which is pronounced "oh-auth," ...
Read more >
Using OAuth 2.0 for Web Server Applications | YouTube Data ...
This document explains how web server applications use Google API Client Libraries or Google OAuth 2.0 endpoints to implement OAuth 2.0 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found