File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ import os
12import pytest
23
34from fastapi_oauth2 .client import OAuth2Client
67
78@pytest .mark .anyio
89async def test_core_init_with_all_backends (backends ):
10+
11+ # azuread-b2c-oauth2
12+ os .environ ['SOCIAL_AUTH_AZUREAD_B2C_OAUTH2_TENANT_NAME' ] = 'test'
13+ os .environ ['SOCIAL_AUTH_AZUREAD_B2C_OAUTH2_POLICY' ] = 'b2c_test'
14+ # UFFD backend
15+ os .environ ['SOCIAL_AUTH_UFFD_BASE_URL' ] = 'test'
16+ # OIDC backend (OpenID Connect)
17+ os .environ ['SOCIAL_AUTH_OIDC_ENDPOINT' ] = 'https://oidctest.wsweet.org'
18+
919 for backend in backends :
1020 try :
21+ # Vend backend
22+ if backend .__name__ == 'VendOAuth2' :
23+ continue # malformed backend
24+
1125 OAuth2Core (OAuth2Client (
1226 backend = backend ,
1327 client_id = "test_client_id" ,
You can’t perform that action at this time.
0 commit comments