From 4683b94699668292cf7041fd3b6d2acb41d9c873 Mon Sep 17 00:00:00 2001 From: Rohit Vishwakarma Date: Mon, 8 May 2017 15:26:25 +0100 Subject: [PATCH] Fix 400 Unable to Parse JSON for Google OAuth --- .../com/example/helloworld/resources/AuthResource.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/server/java/src/main/java/com/example/helloworld/resources/AuthResource.java b/examples/server/java/src/main/java/com/example/helloworld/resources/AuthResource.java index 7efaa05f..02f64e9c 100644 --- a/examples/server/java/src/main/java/com/example/helloworld/resources/AuthResource.java +++ b/examples/server/java/src/main/java/com/example/helloworld/resources/AuthResource.java @@ -253,7 +253,9 @@ public static class Payload { @NotBlank String code; - + + String state; + public String getClientId() { return clientId; } @@ -265,6 +267,10 @@ public String getRedirectUri() { public String getCode() { return code; } + + public String getState() { + return state; + } } /*