Skip to content

Commit

Permalink
[Hexlet#159] add OAuth app for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
d1z3d committed Aug 6, 2024
1 parent fca85d9 commit cba7a52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,13 @@ To build the final jar:
make build
```

### How to add a OAuth2 app for local development
Before starting local development, you must create an OAuth application and add clientID and clientSecret to application.yaml:

```bash
clientId: #add clientId of your OAuth App
clientSecret: #add clientSecret of your OAuth App
```

See more at https://spring.io/guides/tutorials/spring-boot-oauth2#github-register-application

### How to add a OAuth2 app to external server
You need to add environment variables:
```bash
GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET

See more at https://spring.io/guides/tutorials/spring-boot-oauth2#github-register-application
```

### Development with vagrant
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/config/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spring:
client:
registration:
github:
clientId: #add clientId of your OAuth App
clientSecret: #add clientSecret of your OAuth App
clientId: Ov23liMZqO6eA0FyjeM4
clientSecret: 3948c7b7ac39d2ee6611e611259c9422cdf00f96
scope:
- user:email
- read:user

0 comments on commit cba7a52

Please sign in to comment.