Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/josdem/spring-web-resource-client
Implements Oauth2 authorization code from client perspective
https://github.com/josdem/spring-web-resource-client
authorization-code gradle java oauth2
Last synced: about 19 hours ago
JSON representation
Implements Oauth2 authorization code from client perspective
- Host: GitHub
- URL: https://github.com/josdem/spring-web-resource-client
- Owner: josdem
- Created: 2023-10-01T17:23:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-03T23:33:20.000Z (about 1 year ago)
- Last Synced: 2024-05-02T01:34:52.069Z (7 months ago)
- Topics: authorization-code, gradle, java, oauth2
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Spring Boot Resource Client
----------------------------This project shows how to implement [Oauth 2.0 Resource Server](https://docs.spring.io/spring-security/reference/servlet/oauth2/resource-server/index.html) from the client perspective with [Spring Boot Security](https://docs.spring.io/spring-security/reference/index.html) project
#### To run the project
- Checkout [Spring Web Resource Server](https://github.com/josdem/spring-web-resource-server) in your local computer
- Execute that project with `gradle bootRun`
- Then run this project```bash
gradle bootRun
```- Open in your browser [http://127.0.0.1:8080/categories](http://127.0.0.1:8080/categories)
- Select: `categories-client-oidc`
- You should be redirected to a login page
- Enter this credentials```bash
user: username
password: password
```- You should see this response
```bash
["Healing","Energy","Healthy","Boost"]
```**Note:** This project uses this [Authorization Server](https://github.com/josdem/spring-boot-authorization-server) to grant access tokens.
#### Read this as reference
* http://josdem.io/techtalk/spring/spring_webflux_security/