Skip to content

Commit 9311cce

Browse files
authored
Add some convenient hint for username password flow
1 parent ed244ee commit 9311cce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sample/username_password_sample.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,6 @@
5757
print(result.get("error"))
5858
print(result.get("error_description"))
5959
print(result.get("correlation_id")) # You may need this when reporting a bug
60-
60+
if 65001 in result.get("error_codes", []): # Not mean to be coded programatically, but...
61+
# AAD requires user consent for U/P flow
62+
print("Visit this to consent:", app.get_authorization_request_url(scope))

0 commit comments

Comments
 (0)