Skip to content
This repository was archived by the owner on Oct 2, 2023. It is now read-only.

Commit 9b7878f

Browse files
author
Grace Yim
committed
Add more info about postback_data
1 parent 6712470 commit 9b7878f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ auth_iframe_url = iframe_api.get_authentication_url(username);
6060
The simplest way to validate the postback data is to call `is_authentication_granted` to check if the authentication request was granted.
6161

6262
```python
63+
# Retrieve the postback data as a string from POST parameter 'iframe_postback_data'
64+
postback_data = request.args['iframe_postback_data']
65+
6366
# Returns boolean indicating if user should be granted access
64-
authentication_request_granted = iframe_api.is_authentication_granted(form_data)
67+
authentication_request_granted = iframe_api.is_authentication_granted(postback_data)
6568

6669
if authentication_request_granted:
6770
# Success!

0 commit comments

Comments
 (0)