Skip to content

Commit 7951861

Browse files
authored
Add postgres instructions
Signed-off-by: Safin Wasi <6601566+SafinWasi@users.noreply.github.com>
1 parent 5c0f99e commit 7951861

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,32 @@ The project contains one flow: `org.gluu.agama.typekey`. When this is launched,
1717

1818
1. A running instance of Jans Auth Server
1919
1. A new column in `jansdb.jansPerson` to store the phrase metadata in
20-
1. A SCAN subscription. Please visit [Agama Lab](https://gluu.org/agama-lab) and sign up for a free SCAN subscription, which gives you 500 credits. Each successful Typekey API call costs 25 credits.
20+
1. A SCAN subscription. Please visit [Agama Lab](https://gluu.org/agama-lab) and sign up for a free SCAN subscription, which gives you 500 credits. Each successful Typekey API call costs 4 credits.
2121

2222
### Add column to database
2323

24-
These instructions are for MySQL. Please follow the [documentation](https://docs.jans.io/v1.0.22/admin/reference/database/) for your persistence type.
24+
These instructions are for PostgreSQL. Please follow the [documentation](https://docs.jans.io/v1.0.22/admin/reference/database/) for your persistence type.
2525

2626
1. Log into the server running Jans
27-
2. Log into MySQL with a user that has permission to operate on `jansdb`
28-
3. Add the column:
27+
2. Log into PostgreSQL with a user that has permission to operate on `jansdb`
28+
3. Connect to `jansdb`: `\c jansdb`
29+
4. Add the column:
2930

3031
```sql
31-
ALTER TABLE jansdb.jansPerson ADD COLUMN typekeyData JSON NULL;
32+
ALTER TABLE "jansPerson" ADD COLUMN typekeyData JSON;
3233
```
3334

34-
4. Restart MySQL and Auth Server to load the changes:
35+
4. Restart PostgreSQL and Auth Server to load the changes:
3536

3637
```
37-
systemctl restart mysql jans-auth
38+
systemctl restart postgresql jans-auth
3839
````
3940
4041
### Dynamic Client Registration
4142
4243
In order to call the Typekey API, you will need an OAuth client. Once you have a SCAN subscription on Agama Lab, navigate to `Market` > `SCAN` and create an SSA with the software claim `typekey`. The Typekey flow will register its own client via DCR with the SSA you provide in the configuration.
4344
4445
- [Dynamic Client Registration specification](https://www.rfc-editor.org/rfc/rfc7591#section-3.1)
45-
- [Jans Tarp](https://github.com/JanssenProject/jans/tree/main/demos/jans-tarp)
4646
4747
### Deployment
4848

0 commit comments

Comments
 (0)