feat: Add .well-known route
All checks were successful
Build Docker / Build Docker (push) Successful in 3m23s
All checks were successful
Build Docker / Build Docker (push) Successful in 3m23s
This commit is contained in:
parent
79621f2d0f
commit
c2e6ed60e0
8
.gitignore
vendored
8
.gitignore
vendored
@ -1,8 +1,6 @@
|
||||
|
||||
__pycache__/
|
||||
|
||||
instance/
|
||||
|
||||
website/avatars/
|
||||
|
||||
.env
|
||||
.env
|
||||
*.hurl
|
||||
.venv/
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user