Use registered IAS SSO target fkc_ecos
All checks were successful
State Corp Backend CI/CD / Quality gate (push) Successful in 3m54s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Successful in 7m19s
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
State Corp Backend CI/CD / Release dev (push) Successful in 40s
All checks were successful
State Corp Backend CI/CD / Quality gate (push) Successful in 3m54s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Successful in 7m19s
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
State Corp Backend CI/CD / Release dev (push) Successful in 40s
This commit is contained in:
@@ -20,7 +20,7 @@ User = get_user_model()
|
||||
@override_settings(
|
||||
SSO_ENABLED=True,
|
||||
SSO_PROVIDER_URL="https://divopk.vniicentr.ru/sso-redirect/",
|
||||
SSO_SERVICE_CODE="fkc",
|
||||
SSO_SERVICE_CODE="fkc_ecos",
|
||||
)
|
||||
class SsoStartViewTest(SimpleTestCase):
|
||||
def test_redirects_to_provider_with_target_and_local_path(self):
|
||||
@@ -37,7 +37,7 @@ class SsoStartViewTest(SimpleTestCase):
|
||||
)
|
||||
self.assertEqual(
|
||||
parse_qs(redirect.query),
|
||||
{"target": ["fkc"], "path": ["/open-data?scope=rosatom"]},
|
||||
{"target": ["fkc_ecos"], "path": ["/open-data?scope=rosatom"]},
|
||||
)
|
||||
|
||||
def test_rejects_absolute_redirect_path(self):
|
||||
@@ -65,7 +65,7 @@ class SsoCallbackViewTest(APITestCase):
|
||||
self.settings_override = override_settings(
|
||||
SSO_ENABLED=True,
|
||||
SSO_PROVIDER_URL="https://divopk.vniicentr.ru/sso-redirect/",
|
||||
SSO_SERVICE_CODE="fkc",
|
||||
SSO_SERVICE_CODE="fkc_ecos",
|
||||
SSO_ISSUER="dvr",
|
||||
SSO_PUBLIC_KEY_PATH=self.public_key_path,
|
||||
SSO_SESSION_TTL_SECONDS=7200,
|
||||
@@ -95,7 +95,7 @@ class SsoCallbackViewTest(APITestCase):
|
||||
"first_name": "Иван",
|
||||
"last_name": "Иванов",
|
||||
"surname": "Иванович",
|
||||
"sso_target": "fkc",
|
||||
"sso_target": "fkc_ecos",
|
||||
"groups": ["Аналитика"],
|
||||
"okpo": "07508753",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user