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__/
|
__pycache__/
|
||||||
|
|
||||||
instance/
|
instance/
|
||||||
|
|
||||||
website/avatars/
|
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",
|
openseaInfo = requests.get(f"https://api.opensea.io/api/v2/chain/optimism/account/{address}/nfts?collection=handshake-slds",
|
||||||
headers={"Accept": "application/json",
|
headers={"Accept": "application/json",
|
||||||
"x-api-key":openSeaAPIKey})
|
"x-api-key":openSeaAPIKey})
|
||||||
if openseaInfo.status_code == 200:
|
if openseaInfo.status_code != 200:
|
||||||
hnsid = openseaInfo.json()
|
print("Failed to get HNS ID info")
|
||||||
|
print(openseaInfo.json())
|
||||||
|
hnsid = openseaInfo.json()
|
||||||
|
|
||||||
domains = []
|
domains = []
|
||||||
if 'domains' in session:
|
if 'domains' in session:
|
||||||
@ -563,6 +565,7 @@ def revoke_token():
|
|||||||
|
|
||||||
|
|
||||||
@bp.route("/discovery")
|
@bp.route("/discovery")
|
||||||
|
@bp.route("/.well-known/openid-configuration")
|
||||||
def autodiscovery():
|
def autodiscovery():
|
||||||
host = request.host
|
host = request.host
|
||||||
discovery = {
|
discovery = {
|
||||||
|
Loading…
Reference in New Issue
Block a user