some more oauth settings, getting closer...

This commit is contained in:
Benni Bärmann 2021-03-03 15:05:27 +01:00
parent 132bb76ab5
commit cec488054e
2 changed files with 10 additions and 0 deletions

View File

@ -133,6 +133,11 @@ STATIC_URL = '/static/'
# settings needed for allauth
SOCIALACCOUNT_PROVIDERS = {
'nextcloud': {
'SERVER': 'https://wolke.wikimedia.de/',
}
}
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",

View File

@ -11,6 +11,8 @@
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/base.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}" />
{% load socialaccount %}
{% if user.is_authenticated %}
{% block content %}
<center>
<style>
@ -87,3 +89,6 @@
<p>
</center>
{% endblock %}
{% else %}
<a href="{% provider_login_url 'nextcloud' %}">Bitte einloggen!</a>
{% endif %}