http-service: fix /account/callback
This commit is contained in:
@@ -157,9 +157,9 @@ public class AccountService
|
|||||||
public Object callback(
|
public Object callback(
|
||||||
HttpServletRequest request,
|
HttpServletRequest request,
|
||||||
HttpServletResponse response,
|
HttpServletResponse response,
|
||||||
@RequestParam String error,
|
@RequestParam(required = false) String error,
|
||||||
@RequestParam String code,
|
@RequestParam String code,
|
||||||
@RequestParam State state
|
@RequestParam("state") String stateStr
|
||||||
) throws InterruptedException, ExecutionException, IOException
|
) throws InterruptedException, ExecutionException, IOException
|
||||||
{
|
{
|
||||||
if (error != null)
|
if (error != null)
|
||||||
@@ -168,6 +168,8 @@ public class AccountService
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
State state = gson.fromJson(stateStr, State.class);
|
||||||
|
|
||||||
logger.info("Got authorization code {} for uuid {}", code, state.getUuid());
|
logger.info("Got authorization code {} for uuid {}", code, state.getUuid());
|
||||||
|
|
||||||
OAuth20Service service = new ServiceBuilder()
|
OAuth20Service service = new ServiceBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user