Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Helios Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Helios Server
Commits
646e60fa
Unverified
Commit
646e60fa
authored
6 years ago
by
Marco Ciotola
Browse files
Options
Downloads
Patches
Plain Diff
import and serve only enabled auth systems urls
parent
06776599
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
helios_auth/auth_systems/facebookclient/djangofb/default_app/urls.py
+1
-1
1 addition, 1 deletion
.../auth_systems/facebookclient/djangofb/default_app/urls.py
helios_auth/urls.py
+21
-19
21 additions, 19 deletions
helios_auth/urls.py
with
22 additions
and
20 deletions
helios_auth/auth_systems/facebookclient/djangofb/default_app/urls.py
+
1
−
1
View file @
646e60fa
from
django.conf.urls
.defaults
import
*
from
django.conf.urls
import
*
urlpatterns
=
patterns
(
'
{{ project }}.{{ app }}.views
'
,
(
r
'
^$
'
,
'
canvas
'
),
...
...
This diff is collapsed.
Click to expand it.
helios_auth/urls.py
+
21
−
19
View file @
646e60fa
"""
Authentication URLs
Ben Adida (ben@adida.net)
"""
from
django.conf.urls
import
*
from
django.conf.urls
import
url
from
views
import
*
from
auth_systems.password
import
password_login_view
,
password_forgotten_view
from
auth_systems.twitter
import
follow_view
import
views
from
settings
import
AUTH_ENABLED_AUTH_SYSTEMS
urlpatterns
=
patterns
(
''
,
urlpatterns
=
[
# basic static stuff
(
r
'
^$
'
,
index
),
(
r
'
^logout$
'
,
logout
),
(
r
'
^start/(?P<system_name>.*)$
'
,
start
),
url
(
r
'
^$
'
,
views
.
index
),
url
(
r
'
^logout$
'
,
views
.
logout
),
url
(
r
'
^start/(?P<system_name>.*)$
'
,
views
.
start
),
# weird facebook constraint for trailing slash
(
r
'
^after/$
'
,
after
),
(
r
'
^why$
'
,
perms_why
),
(
r
'
^after_intervention$
'
,
after_intervention
),
## should make the following modular
url
(
r
'
^after/$
'
,
views
.
after
),
url
(
r
'
^why$
'
,
views
.
perms_why
),
url
(
r
'
^after_intervention$
'
,
views
.
after_intervention
),
]
# password auth
(
r
'
^password/login
'
,
password_login_view
),
(
r
'
^password/forgot
'
,
password_forgotten_view
),
if
'
password
'
in
AUTH_ENABLED_AUTH_SYSTEMS
:
from
auth_systems.password
import
password_login_view
,
password_forgotten_view
urlpatterns
.
append
(
url
(
r
'
^password/login
'
,
password_login_view
))
urlpatterns
.
append
(
url
(
r
'
^password/forgot
'
,
password_forgotten_view
))
# twitter
(
r
'
^twitter/follow
'
,
follow_view
),
)
if
'
twitter
'
in
AUTH_ENABLED_AUTH_SYSTEMS
:
from
auth_systems.twitter
import
follow_view
urlpatterns
.
append
(
url
(
r
'
^twitter/follow
'
,
follow_view
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment