canaille-globuzma/tests/oidc/test_well_known.py
2022-01-11 19:42:26 +01:00

8 lines
360 B
Python

def test_oauth_authorization_server(testclient):
res = testclient.get("/.well-known/oauth-authorization-server", status=200).json
assert "https://mydomain.tld" == res["issuer"]
def test_openid_configuration(testclient):
res = testclient.get("/.well-known/openid-configuration", status=200).json
assert "https://mydomain.tld" == res["issuer"]