Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladimirfomene/oauth-implicit
https://github.com/vladimirfomene/oauth-implicit
auth0 jquery oauth2 springboot
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/vladimirfomene/oauth-implicit
- Owner: vladimirfomene
- Created: 2018-10-10T11:40:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T07:17:04.000Z (over 6 years ago)
- Last Synced: 2024-11-10T08:40:09.445Z (3 months ago)
- Topics: auth0, jquery, oauth2, springboot
- Language: JavaScript
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Oauth-Implicit
## IDE And Tools
* I used Intellij IDE to develop this sample application.
* I created a skeleton of the project from [Spring Boot's bootstrap site](https://start.spring.io/)
* Specified Gradle as my build system and selected web, security and security-oauth2 for my dependencies.## App Dependencies
* Spring Boot starter web, starter security, test and security-oauth2 for handling HTTP requests, HTTP security, test and OAUTH 2 support respectively.
* JAXB to add support for Java 10.
* `json` for crafting JSON responses to HTTP requests.
* `auth0-spring-security-api` for securing our API with Auth0.## App Setup
* Create an Auth0 account.
* Create an API with audience `https://localhost:8080/api`. Give the API any name you want.
* In your Auth0 API, add a scope with name `Read:messages` and description `Read messages`
* Create an Auth0 application, give it a name of your choose. While creating the application set the **Allowed Callback URLs** to `http://localhost:8080`.## Running the app.
Replace the values under `./src/main/resources/application.yml` with your own Auth0 values. After that, you can run the app from a terminal by issuing:
```bash
./gradlew bootRun
```## Testing the application
* Access the app by visiting `http://localhost:8080` in your browser.
* Login with the login button, once logged in, you can make API calls by clicking on the ping button or view your profile by clicking on the profile button and once you are done, logout with logout button.