https://github.com/nexmo-community/oauth2-login-shell
A command-line tool to test OAuth2 authentication
https://github.com/nexmo-community/oauth2-login-shell
example java oauth2 ucaas ucextend vonage-api
Last synced: 10 months ago
JSON representation
A command-line tool to test OAuth2 authentication
- Host: GitHub
- URL: https://github.com/nexmo-community/oauth2-login-shell
- Owner: nexmo-community
- License: mit
- Created: 2019-07-17T17:36:02.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-02-01T13:57:12.000Z (almost 5 years ago)
- Last Synced: 2025-02-10T09:41:53.660Z (12 months ago)
- Topics: example, java, oauth2, ucaas, ucextend, vonage-api
- Language: Java
- Size: 7.81 KB
- Stars: 2
- Watchers: 13
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oauth2-login-shell
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 `devsupport@vonage.com` or Issues filed here on github.