Commit ad220433 authored by Kane Wachira's avatar Kane Wachira
Browse files

Add Keycloak Auth with social-auth

parent 99f6eb4a
*.pyc
__pycache__/
.sqlite3
......@@ -4,15 +4,12 @@
{% block content %}
<h1>Dashboard</h1>
<p>Welcome to your dashboard. You can <a href="{% url "edit" %}">edit your profile</a> or <a href="{% url "password_change" %}">change your password</a>.</p>
<p>Welcome to your dashboard. You can <a href="http://localhost:8080/realms/bookmarks/account">edit your profile</a> or <a href="http://localhost:8080/realms/bookmarks/account">change your password</a>.</p>
{% with total_images_created=request.user.images_created.count %}
<p>Welcome to your dashboard. You have bookmarked {{ total_images_created }} image{{ total_images_created|pluralize }}.</p>
{% endwith %}
<p>Drag the following button to your bookmarks toolbar to bookmark images from other websites → <a href="javascript:{% include "bookmarklet_launcher.js" %}" class="button">Bookmark it</a></p>
<p>You can also <a href="{% url "edit" %}">edit your profile</a> or <a href="{% url "password_change" %}">change your password</a>.</p>
<h2>What's happening</h2>
<div id="action-list">
......
......@@ -26,7 +26,7 @@
Hello {{ request.user.first_name }},
<a href="{% url "logout" %}">Logout</a>
{% else %}
<a href="{% url "login" %}">Log-in</a>
<a href="{% url "social:begin" "keycloak" %}">Log-in</a>
{% endif %}
</span>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment