Skip to content

Commit

Permalink
Implement Microsoft identity association
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieJC committed Oct 31, 2023
1 parent b4b4286 commit bb098be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,14 @@ def health_check():
return "IMOK"


@app.route("/.well-known/microsoft-identity-association.json")
def route_wkmia():
ms_app_id = None
if ENVIRONMENT == "nonprod":
ms_app_id = "301f0473-4ce3-483b-b2e9-32c4503cb4d2"
return jsonify({"associatedApplications": [{"applicationId": ms_app_id}]})


@app.route("/.well-known/jwks.json")
def jwks():
return jsonify(jwt_signing.get_jwks())
Expand Down

0 comments on commit bb098be

Please sign in to comment.