WMDE
/
eva
forked from tohe/eva
7
1
Fork 0

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 # settings needed for allauth
SOCIALACCOUNT_PROVIDERS = {
'nextcloud': {
'SERVER': 'https://wolke.wikimedia.de/',
}
}
AUTHENTICATION_BACKENDS = ( AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend", "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/base.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}" /> <link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}" />
{% load socialaccount %}
{% if user.is_authenticated %}
{% block content %} {% block content %}
<center> <center>
<style> <style>
@ -87,3 +89,6 @@
<p> <p>
</center> </center>
{% endblock %} {% endblock %}
{% else %}
<a href="{% provider_login_url 'nextcloud' %}">Bitte einloggen!</a>
{% endif %}