Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ host all rolename 127.0.0.1/32 oauth scope="database",issuer=http://127.0.0.1:80

Connection example:
```
psql 'host=127.0.0.1 dbname=name user=rolename oauth_issuer=http://127.0.0.1:8080/realms/master oauth_client_id=database'
psql 'host=127.0.0.1 dbname=name user=rolename oauth_issuer=https://127.0.0.1:8080/realms/master oauth_client_id=postgres'
```
**NOTE**: OAuth requires HTTPS. You need to:
1. Configure a valid SSL certificate in our test Keycloak server or
2. Bypass the HTTPS requirement using the `PGOAUTHDEBUG` flag, which was [designed for tests like this](https://www.postgresql.org/docs/current/libpq-oauth.html#LIBPQ-OAUTH-DEBUGGING).

### Microsoft / Entra ID
* `oauth_issuer` for postgres should be `https://login.microsoftonline.com/<tenant_id>/v2.0`
Expand Down