some more oauth settings, getting closer...
This commit is contained in:
parent
132bb76ab5
commit
cec488054e
|
@ -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",
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue