Commit 892b1d5c authored by Quxl's avatar Quxl

x

parent 1e2537b5
......@@ -46,6 +46,8 @@ public interface OAuthApi {
builder.setResponseType(OAuth.OAUTH_CODE);
builder.setClientId(config.getClientId());
builder.setRedirectURI(config.getRediretUrl());
builder.setScope(config.getScope());
builder.setParameter("realm", config.getRealm());
OAuthClientRequest oauthResponse = builder.buildQueryMessage();
response.sendRedirect(oauthResponse.getLocationUri());
} catch (Exception e) {
......@@ -66,9 +68,7 @@ public interface OAuthApi {
builder.setGrantType(GrantType.AUTHORIZATION_CODE);
builder.setClientId(config.getClientId());
builder.setClientSecret(config.getClientSecret());
builder.setParameter("realm", config.getRealm());
builder.setRedirectURI(config.getRediretUrl());
builder.setScope(config.getScope());
builder.setCode(code);
OAuthClientRequest oauthClientRequest = builder.buildQueryMessage();
OAuthClient oAuthClient = new OAuthClient(new URLConnectionClient());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment