(String state)
| 66 | } |
| 67 | |
| 68 | public String getAuthorizationUrl(String state) { |
| 69 | AuthorizationCodeRequestUrl url = this.flow.newAuthorizationUrl(); |
| 70 | if (state != null) { |
| 71 | url.setState(state); |
| 72 | } |
| 73 | url.setRedirectUri(this.redirectUri); |
| 74 | return url.build(); |
| 75 | } |
| 76 | |
| 77 | public String fetchToken(String code, String userId) throws IOException { |
| 78 | TokenResponse tokenResponse = this.flow.newTokenRequest(code) |