Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thaven/oauth
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: teamhackback/oauth
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Jun 17, 2017

  1. session hotfix

    wilzbach committed Jun 17, 2017
    Copy the full SHA
    f054671 View commit details
Showing with 4 additions and 2 deletions.
  1. +4 −2 source/oauth/session.d
6 changes: 4 additions & 2 deletions source/oauth/session.d
Original file line number Diff line number Diff line change
@@ -51,8 +51,10 @@ class OAuthSession
auto data = httpSession.get!(SaveData)("oauth.session");
auto session = new OAuthSession(settings, data);

enforce!OAuthException(session.signature == data.signature,
"Failed to load session: signature mismatch.");
if (session.signature != data.signature)
return null;
//enforce!OAuthException(session.signature == data.signature,
//"Failed to load session: signature mismatch.");

logDebugV("OAuth: Token provided by %s was successfully recovered" ~
" from HTTP session.", settings.provider.authUriParsed.host);