How do I get the Auth Code from the redirect url? OAuth2
问题 I'm trying to authenticate my app with an API using OAuth2.0. I'm new to OAuth and only have a basic understanding of it. I have implemented a way to get the access token and make the requests I want, however my method seems a bit inefficient. It could also be my slight lack of knowledge with http requests in Java. Just as a note, i am using the apache http client. Currently what im doing to get authorized is I open the user authorization page directly in the browser with: Desktop.getDesktop(