Commit 958b008f authored by Quxl's avatar Quxl

x

parent 31c5abfd
...@@ -49,7 +49,9 @@ public interface OAuthApi { ...@@ -49,7 +49,9 @@ public interface OAuthApi {
builder.setScope(config.getScope()); builder.setScope(config.getScope());
builder.setParameter("realm", config.getRealm()); builder.setParameter("realm", config.getRealm());
OAuthClientRequest oauthResponse = builder.buildQueryMessage(); OAuthClientRequest oauthResponse = builder.buildQueryMessage();
response.sendRedirect(oauthResponse.getLocationUri()); String redirectUrl = oauthResponse.getLocationUri();
System.out.println("redirect:" + redirectUrl);
response.sendRedirect(redirectUrl);
} catch (Exception e) { } catch (Exception e) {
throw new OAuthApiException(e.getMessage(), e); throw new OAuthApiException(e.getMessage(), e);
} }
......
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