mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
add oidcc-config-certification-test-plan
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@@ -284,6 +284,8 @@ jobs:
|
||||
job:
|
||||
- name: oidc_basic
|
||||
glob: tests/openid_conformance/test_oidc_basic.py
|
||||
- name: oidc_config
|
||||
glob: tests/openid_conformance/test_oidc_config.py
|
||||
- name: oidc_implicit
|
||||
glob: tests/openid_conformance/test_oidc_implicit.py
|
||||
- name: oidc_rp-initiated
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
from authentik.providers.oauth2.models import IssuerMode, OAuth2Provider
|
||||
from tests.decorators import retry
|
||||
from tests.live import SSLLiveMixin
|
||||
from tests.openid_conformance.base import TestOpenIDConformance
|
||||
|
||||
|
||||
class TestOpenIDConformanceConfig(TestOpenIDConformance, SSLLiveMixin):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
OAuth2Provider.objects.filter(name__startswith="oidc-conformance-").update(
|
||||
issuer_mode=IssuerMode.PER_PROVIDER
|
||||
)
|
||||
|
||||
@retry()
|
||||
def test_oidcc_config_certification_test_plan(self):
|
||||
self.run_test(
|
||||
"oidcc-config-certification-test-plan",
|
||||
{
|
||||
"alias": "authentik",
|
||||
"description": "authentik",
|
||||
"server": {
|
||||
"discoveryUrl": self.url(
|
||||
"authentik_providers_oauth2:provider-info",
|
||||
application_slug="oidc-conformance-1",
|
||||
),
|
||||
},
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user