Commit a5fe6035 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

added oidc_provider django-app

parent f1facb2b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ INSTALLED_APPS = (
    'kodo_sso.custom_auth',
    'kodo_sso.accounts',
    'widget_tweaks',
    'oidc_provider',
)


@@ -55,6 +56,10 @@ ROOT_URLCONF = 'kodo_sso.urls'
WSGI_APPLICATION = 'kodo_sso.wsgi.application'


# OIDC
OIDC_RSA_KEY_FOLDER = '/etc/kodo-sso'


DEBUG = False


+4 −0
Original line number Diff line number Diff line
@@ -41,6 +41,10 @@ DATABASES = {
}


# OIDC
OIDC_RSA_KEY_FOLDER = BASE_DIR


# Media files
MEDIA_ROOT = join(BASE_DIR, 'media')

+27 −0
Original line number Diff line number Diff line
{% extends "center_form.html" %}
{% load i18n %}

{% block title %}{% trans "Request for Permission :: OpenID" %}{% endblock %}
{% block heading %}{% trans "Request for Permission" %}{% endblock %}

{% block content %}
	{% url 'oidc:authorize' as form_action %}
	{{ block.super }}
{% endblock %}

{% block form %}
	<p>
		{% blocktrans %}
			Client <strong>{{ client.name }}</strong> would like to access this
			information about you:
		{% endblocktrans %}
	</p>
	<ul>
		{% for scope in params.scope %}
			<li>{{ scope|capfirst }}</li>
		{% endfor %}
	</ul>

	{{ hidden_inputs }}
	<button type="submit" name="allow">{% trans "Authorize" %}</button>
{% endblock form %}
+10 −0
Original line number Diff line number Diff line
{% extends "skeleton.html" %}
{% load i18n %}

{% block title %}{% trans "OpenID Error" %}{% endblock %}
{% block heading %}{% trans "OpenID Error" %}{% endblock %}

{% block content %}
	<h4>{{ error }}</h4>
	<p>{{ description }}</p>
{% endblock content %}
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ urlpatterns = [
	url(r'^$', RedirectView.as_view(
		pattern_name='user_settings', permanent=False)),
	url(r'^admin/', admin.site.urls),
	url(r'^openid/', include('oidc_provider.urls', namespace='oidc')),
	url(r'', include('kodo_sso.accounts.urls')),
	url(r'', include('django.contrib.auth.urls')),
]
Loading