Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ability to add a Facebook account under https
When running under https, the redirect url generated when creating an authorization url correctly set the protocol to https if the ThinkUp web server is running under https, but always set the redirect url protocol to http when creating the url to request an access token. This caused Facebook to reject the request for the access token if the app was configured with the https url. Closes #1048
- Loading branch information
1 parent
a15f562
commit 9784edd
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...secret=scrt-redirect_uri=http%3A%2F%2Fsrvr%2Faccount%2F%3Fp%3Dfacebook-state=123-code=789
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"error":{"message":"Invalid redirect_uri: Given URL is not allowed by the Application configuration.","type":"OAuthException"}} |
1 change: 1 addition & 0 deletions
1
...ecret=scrt-redirect_uri=https%3A%2F%2Fsrvr%2Faccount%2F%3Fp%3Dfacebook-state=123-code=789
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
access_token=newfauxaccesstoken11234567890 |