2019-05-07 14:05:39 +02:00
|
|
|
# authentic2-auth-fc - authentic2 authentication for FranceConnect
|
|
|
|
# Copyright (C) 2019 Entr'ouvert
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Affero General Public License as published
|
|
|
|
# by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2018-04-18 15:43:33 +02:00
|
|
|
from django.conf.urls import url, include
|
2015-05-27 16:07:44 +02:00
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
2018-04-18 15:43:33 +02:00
|
|
|
fcpatterns = [
|
2015-05-27 18:47:43 +02:00
|
|
|
url(r'^callback/$', views.login_or_link, name='fc-login-or-link'),
|
2015-12-03 17:49:21 +01:00
|
|
|
url(r'^callback_logout/$', views.logout, name='fc-logout'),
|
2018-04-18 15:43:33 +02:00
|
|
|
]
|
2015-05-27 16:07:44 +02:00
|
|
|
|
2018-04-18 15:43:33 +02:00
|
|
|
urlpatterns = [
|
2019-05-07 14:05:39 +02:00
|
|
|
url(r'^fc/', include(fcpatterns)),
|
|
|
|
url(r'^accounts/fc/register/$', views.registration, name='fc-registration'),
|
|
|
|
url(r'^accounts/fc/unlink/$', views.unlink, name='fc-unlink'),
|
2018-04-18 15:43:33 +02:00
|
|
|
]
|