Skip to content

Commit d4c8fc9

Browse files
lasdf1234Copilot
andcommitted
[MINOR] docs: update Flink OAuth2 example
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 70456da commit d4c8fc9

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docs/iceberg-rest-service.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,18 @@ spark.sql.catalog.${catalog_name}.token-exchange-enabled=false
344344

345345
**Flink**
346346

347-
If you are using Flink, set the following catalog property to disable token exchange:
347+
If you are using Flink, set the following catalog properties to disable token exchange:
348348

349349
```sql
350-
'token-exchange-enable'='false'
350+
CREATE CATALOG irc WITH (
351+
'type' = 'iceberg',
352+
'catalog-type' = 'rest',
353+
'uri' = 'http://127.0.0.1:9001/iceberg/',
354+
'credential' = 'gravitino-client:q13WKxZYwUEt9L9XEtTHZjj3mxvGo0Pa',
355+
'oauth2-server-uri' = 'http://127.0.0.1:8080/realms/gravitinorealm/protocol/openid-connect/token',
356+
'scope' = 'openid profile email',
357+
'token-exchange-enable'='false'
358+
);
351359
```
352360

353361
**Trino**

0 commit comments

Comments
 (0)