feat(auth): add IAS ECP SSO
Some checks failed
State Corp Backend CI/CD / Quality gate (push) Failing after 1m46s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Has been skipped
State Corp Backend CI/CD / Release dev (push) Has been skipped
State Corp Backend CI/CD / Refresh and release internal main (push) Has been skipped
State Corp Backend CI/CD / Release customer main (push) Has been skipped
Some checks failed
State Corp Backend CI/CD / Quality gate (push) Failing after 1m46s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Has been skipped
State Corp Backend CI/CD / Release dev (push) Has been skipped
State Corp Backend CI/CD / Refresh and release internal main (push) Has been skipped
State Corp Backend CI/CD / Release customer main (push) Has been skipped
This commit is contained in:
@@ -11,6 +11,7 @@ from apps.core.views import (
|
||||
BackgroundJobStatusView,
|
||||
BackgroundJobStreamView,
|
||||
)
|
||||
from apps.user.sso_views import SsoCallbackView, SsoStartView
|
||||
from django.urls import include, path
|
||||
|
||||
app_name = "api_v1"
|
||||
@@ -22,6 +23,8 @@ jobs_urlpatterns = [
|
||||
]
|
||||
|
||||
urlpatterns = [
|
||||
path("auth/sso/", SsoCallbackView.as_view(), name="sso-callback"),
|
||||
path("auth/sso/start/", SsoStartView.as_view(), name="sso-start"),
|
||||
path("analytics/", include("apps.organization.analytics_root_urls")),
|
||||
path("exchange/", include("apps.exchange.urls")),
|
||||
path("dictionaries/", include("apps.organization.dictionary_urls")),
|
||||
|
||||
@@ -5,27 +5,19 @@ The `urlpatterns` list routes URLs to views.
|
||||
"""
|
||||
|
||||
from apps.core.openapi import (
|
||||
OPENAPI_PROJECT_DESCRIPTION,
|
||||
OPENAPI_PROJECT_TITLE,
|
||||
OPENAPI_INFO,
|
||||
RussianTagSchemaGenerator,
|
||||
)
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from drf_yasg import openapi
|
||||
from drf_yasg.views import get_schema_view
|
||||
from rest_framework import permissions
|
||||
|
||||
# Swagger schema view
|
||||
schema_view = get_schema_view(
|
||||
openapi.Info(
|
||||
title=OPENAPI_PROJECT_TITLE,
|
||||
default_version="v1",
|
||||
description=OPENAPI_PROJECT_DESCRIPTION,
|
||||
contact=openapi.Contact(email="contact@state-corp.local"),
|
||||
license=openapi.License(name="BSD License"),
|
||||
),
|
||||
OPENAPI_INFO,
|
||||
public=True,
|
||||
generator_class=RussianTagSchemaGenerator,
|
||||
permission_classes=(permissions.AllowAny,),
|
||||
|
||||
Reference in New Issue
Block a user