Skip to content

Commit

Permalink
[Hexlet#159] add description how to add a OAuth data and delete own d…
Browse files Browse the repository at this point in the history
…ata of OAuth app
  • Loading branch information
d1z3d committed Aug 1, 2024
1 parent 1f8ca2a commit fca85d9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ 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
```

### Development with vagrant

Install Vagrant and VM provider (Virtualbox).
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: Ov23liAF8M9hkDjqebdW
clientSecret: c7b69f3056cb406cca53ea412b0cd06353749731
clientId: #add clientId of your OAuth App
clientSecret: #add clientSecret of your OAuth App
scope:
- user:email
- read:user

0 comments on commit fca85d9

Please sign in to comment.