|
|
|
@ -21,6 +21,7 @@ public class MyVREs implements EntryPoint {
|
|
|
|
|
public static final String GET_CONTEXT_PARAMETER = "scope";
|
|
|
|
|
public static final String GET_CLIENT_ID_PARAMETER = "client_id";
|
|
|
|
|
public static final String GET_CLIENT_SECRET_PARAMETER = "client_secret";
|
|
|
|
|
public static final String GET_RESPONSE_TYPE_PARAMETER = "response_type";
|
|
|
|
|
|
|
|
|
|
public static final String GET_AUTH_TOKEN_PARAMETER = "code";
|
|
|
|
|
|
|
|
|
@ -53,7 +54,10 @@ public class MyVREs implements EntryPoint {
|
|
|
|
|
@Override
|
|
|
|
|
public void onSuccess(AuthorizationBean result) {
|
|
|
|
|
if (result.isSuccess()) {
|
|
|
|
|
Location.assign(params.redirectURI+"?"+GET_AUTH_TOKEN_PARAMETER+"="+result.getOAuth2TemporaryCode()+"&"+GET_STATE_PARAMETER+"="+result.getState());
|
|
|
|
|
Location.assign(params.redirectURI+"?"
|
|
|
|
|
+GET_AUTH_TOKEN_PARAMETER+"="+result.getOAuth2TemporaryCode()+"&"
|
|
|
|
|
+GET_STATE_PARAMETER+"="+result.getState()+"&"
|
|
|
|
|
+GET_RESPONSE_TYPE_PARAMETER+"=code");
|
|
|
|
|
} else {
|
|
|
|
|
HTML message = new HTML("There were issues in managing this request: " + result.getErrorDescription());
|
|
|
|
|
message.setStyleName("portlet-msg-error");
|
|
|
|
|