Skip to content

Commit

Permalink
Change Captchetat scope (#250)
Browse files Browse the repository at this point in the history
* feat: 👽 scope change
  • Loading branch information
nicolaskempf57 committed May 16, 2023
1 parent 89eef51 commit e7d18a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Handle previous format of link to discussions, e.g. from e-mails [#241](https://github.com/etalab/udata-front/pull/241)
- Add `last_update` sort in datasets page [#242](https://github.com/etalab/udata-front/pull/242)
- Fix `.fr-btn` in `.markdown` [#243](https://github.com/etalab/udata-front/pull/243)
- New scope for Captchetat piste OAuth [#250](https://github.com/etalab/udata-front/pull/250)

## 3.2.2 (2023-04-18)

Expand Down
2 changes: 1 addition & 1 deletion udata_front/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def bearer_token():
try:
oauth = requests.post(f'{url}/api/oauth/token', data={
'grant_type': 'client_credentials',
'scope': 'WRITE',
'scope': 'piste.captchetat',
'client_id': current_app.config.get('CAPTCHETAT_CLIENT_ID'),
'client_secret': current_app.config.get('CAPTCHETAT_CLIENT_SECRET')
})
Expand Down

0 comments on commit e7d18a9

Please sign in to comment.