Answers inline:
> The "authorize" request that is built in OAuthClientTest never reaches
> the server
> and which "line" of code that sends the authorize request isn't clear
> to me.
>
> I thought the sending of the authorize request would be between these
> two lines....
>
> //in web application you make redirection to uri:
> System.out.println("Visit: " + request.getLocationUri() +
> "\nand grant permission");
>
> System.out.print("Now enter the OAuth code you have
> received in redirect uri ");
As you can see, we only generate the authorization request and this is
where your application needs to redirect the user to the
"request.getLocationUri()" address. For example, in a servlet this
would be:
servletResponse.sendRedirect(request.getLocationUri());
Please take a look at
https://bitbucket.org/smartproject/oauth-2.0/wiki/Client for more
information.
> I was going to duplicate this code:
> GitHubTokenResponse oAuthResponse = oAuthClient.accessToken(request,
> GitHubTokenResponse.class);
>
> to send the authorize message, but noticed oAuthClient only has an
> accessToken
> method. How is the authorize request sent ?
As described above, this is by using a redirect.
Let us know if you need more information. It's great to hear that
you're building a new OAuth 2.0 server!
Cheers,
Maciej
--
Maciej Machulak
email: maciej....@gmail.com
tel: +48 602 45 31 44
tel: +44 7999 606 767