Skip to content

Commit

Permalink
make resource param optional
Browse files Browse the repository at this point in the history
  • Loading branch information
teemukataja committed May 31, 2024
1 parent 041a89e commit 50d6c71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ async def login_endpoint():
"state": state,
"redirect_uri": CONFIG["url_callback"],
"scope": CONFIG["scope"],
"resource": CONFIG["resource"],
}
# optional param for special cases
if "resource" in CONFIG:
params["resource"] = CONFIG["resource"]

# prepare the redirection response
url = CONFIG["url_auth"] + "?" + urlencode(params)
Expand Down

0 comments on commit 50d6c71

Please sign in to comment.