http-service: fix /account/callback

This commit is contained in:
Adam
2017-08-14 07:55:59 -04:00
parent 2ae2289972
commit 68c9172af2

View File

@@ -157,9 +157,9 @@ public class AccountService
public Object callback(
HttpServletRequest request,
HttpServletResponse response,
@RequestParam String error,
@RequestParam(required = false) String error,
@RequestParam String code,
@RequestParam State state
@RequestParam("state") String stateStr
) throws InterruptedException, ExecutionException, IOException
{
if (error != null)
@@ -168,6 +168,8 @@ public class AccountService
return null;
}
State state = gson.fromJson(stateStr, State.class);
logger.info("Got authorization code {} for uuid {}", code, state.getUuid());
OAuth20Service service = new ServiceBuilder()