summaryrefslogtreecommitdiff
path: root/issues/set-up-jwt-gn3.gmi
blob: 8b78f9eedd99ebc2f80430b8abc859a8a09eebdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Re-use JWTs in gn3

* assigned: bonfacem
* tags: critical

## Description

We move auth related functionality to GN2.  Auth is currently in used by the LLM app, and the editing metadata work.

Resolved in:

* https://github.com/genenetwork/genenetwork3/pull/158
* https://github.com/genenetwork/genenetwork2/pull/840
* https://github.com/genenetwork/genenetwork3/pull/158/commits/7b4c1acf4cc8d1408fe44c887d878a4b5782a0c3

When setting up gn-auth, remember to update this table, otherwise you'll get a "BAD REQUEST" error in GN2:

```
UPDATE oauth2_clients SET client_metadata='{"client_name": "GN2 Local Dev Server", "token_endpoint_auth_method": ["client_secret_post", "client_secret_basic"], "client_type": "confidential", "grant_types": ["password", "authorization_code", "refresh_token", "urn:ietf:params:oauth:grant-type:jwt-bearer"], "default_redirect_uri": "http://localhost:5007/oauth2/code", "redirect_uris": ["http://localhost:5007/oauth2/code"], "response_type": ["code", "token"], "scope": ["profile", "group", "role", "resource", "user", "masquerade"]}' WHERE client_id = '0bbfca82-d73f-4bd4-a140-5ae7abb4a64d';
```



* closed