feat: Add .well-known route
All checks were successful
Build Docker / Build Docker (push) Successful in 3m23s

This commit is contained in:
Nathan Woodburn 2025-02-13 18:31:59 +11:00
parent 79621f2d0f
commit c2e6ed60e0
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 8 additions and 7 deletions

8
.gitignore vendored
View File

@ -1,8 +1,6 @@
__pycache__/
instance/
website/avatars/
.env
.env
*.hurl
.venv/

View File

@ -180,8 +180,10 @@ def home():
openseaInfo = requests.get(f"https://api.opensea.io/api/v2/chain/optimism/account/{address}/nfts?collection=handshake-slds",
headers={"Accept": "application/json",
"x-api-key":openSeaAPIKey})
if openseaInfo.status_code == 200:
hnsid = openseaInfo.json()
if openseaInfo.status_code != 200:
print("Failed to get HNS ID info")
print(openseaInfo.json())
hnsid = openseaInfo.json()
domains = []
if 'domains' in session:
@ -563,6 +565,7 @@ def revoke_token():
@bp.route("/discovery")
@bp.route("/.well-known/openid-configuration")
def autodiscovery():
host = request.host
discovery = {