Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jslott committed Aug 29, 2019
2 parents a989aa3 + 0dc1a0c commit da4219c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# oauth2-login-shell
A command-line tool to test OAuth2 authentication
This is a command-line tool to test authenticating against an OAuth2 authorization server. It was specifically designed as an example for Vonage's UC Extend Developer Portal (developer.vonage.com/store), but it should work other OAuth2 authorization servers too. It also serves as an example for those who want to develop desktop applications against the UC Extend APIs by using localhost as the OAuth2 callback url.

# Dependencies
Java 8 and maven

# Get and run the source code
1. Clone this repo.
2. Edit the `src/main/resources/application.properties` file to use your own client id and client secret you obtained via the Vonage UC Extend Developer Portal.
3. Run on the command-line via `mvn spring-boot:run`.
4. At the prompt, run the `login` command; it should launch a web browser window that redirects to a login page.
5. Login in with either valid Vonage Business Cloud or Vonage Business Enterprise credentials. It should display the access and refresh tokens on the console.

# Issues and contributions
We welcome comments at `[email protected]` or Issues filed here on github.

0 comments on commit da4219c

Please sign in to comment.