import requests, io, sys, json
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
doms = ["vinfast-vn.auth0.com", "vinfast-vn-prod.auth0.com", "vinfast-vn-prod.jp.auth0.com",
        "vinfast-vn-prod.au.auth0.com", "vinfast-vn-prod.eu.auth0.com", "vinfast-vn-prod.us.auth0.com",
        "vinfast-as-prod.jp.auth0.com", "vin3s.au.auth0.com"]
for d in doms:
    try:
        r = requests.get(f"https://{d}/.well-known/openid-configuration", timeout=8)
        if r.status_code == 200 and r.headers.get("content-type", "").startswith("application/json"):
            j = r.json()
            print(f"{d:38s} TENANT-THAT  issuer={j.get('issuer')}")
        else:
            body = r.text[:120].replace('\n', ' ')
            print(f"{d:38s} HTTP {r.status_code}  body: {body}")
    except Exception as e:
        print(f"{d:38s} ✗ {type(e).__name__}")
