2022-11-20 21:12:18 +00:00
|
|
|
from flask import g
|
|
|
|
|
|
|
|
|
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
|
2022-10-03 15:25:32 +00:00
|
|
|
assert "https://auth.mydomain.tld" == res["issuer"]
|
2022-11-20 21:12:18 +00:00
|
|
|
assert res["ui_locales_supported"] == g.available_language_codes
|
2020-08-27 14:08:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_openid_configuration(testclient):
|
|
|
|
res = testclient.get("/.well-known/openid-configuration", status=200).json
|
2022-10-03 15:25:32 +00:00
|
|
|
assert "https://auth.mydomain.tld" == res["issuer"]
|
2022-11-20 21:12:18 +00:00
|
|
|
assert res["ui_locales_supported"] == g.available_language_codes
|