c180a521ec
* build(deps-dev): bump pylint from 2.7.2 to 2.7.3 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.7.2 to 2.7.3. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.7.2...pylint-2.7.3) Signed-off-by: dependabot[bot] <support@github.com> * sources/saml: fix linting for SAMLBindingTypes.Redirect Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * sources/oauth: Fix linting for RequestKind Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * flows: fix linting for ChallengeTypes Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens.langhammer@beryju.org>
20 lines
516 B
Python
20 lines
516 B
Python
"""authentik OAuth source urls"""
|
|
|
|
from django.urls import path
|
|
|
|
from authentik.sources.oauth.types.manager import RequestKind
|
|
from authentik.sources.oauth.views.dispatcher import DispatcherView
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"login/<slug:source_slug>/",
|
|
DispatcherView.as_view(kind=RequestKind.REDIRECT),
|
|
name="oauth-client-login",
|
|
),
|
|
path(
|
|
"callback/<slug:source_slug>/",
|
|
DispatcherView.as_view(kind=RequestKind.CALLBACK),
|
|
name="oauth-client-callback",
|
|
),
|
|
]
|