canaille-globuzma/tests/oidc/test_well_known.py

9 lines
360 B
Python
Raw Normal View History

2020-08-27 14:08:26 +00:00
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"]