|
33 | 33 | " client_id=client_id,\n", |
34 | 34 | " client_secret=client_secret,\n", |
35 | 35 | " grant_type='client_credentials',\n", |
36 | | - " _headers={'realm': 'default-realm'})\n" |
| 36 | + " _headers={'realm': 'POLARIS'})\n" |
37 | 37 | ] |
38 | 38 | }, |
39 | 39 | { |
|
420 | 420 | " client_id=engineer_principal.credentials.client_id,\n", |
421 | 421 | " client_secret=engineer_principal.credentials.client_secret.get_secret_value(),\n", |
422 | 422 | " grant_type='client_credentials',\n", |
423 | | - " _headers={'realm': 'default-realm'})\n", |
| 423 | + " _headers={'realm': 'POLARIS'})\n", |
424 | 424 | "\n", |
425 | 425 | "# Now create a catalog client that uses the token in its Authentication header\n", |
426 | 426 | "client = CatalogApiClient(CatalogApiClientConfiguration(access_token=collado_token.access_token,\n", |
|
573 | 573 | " client_id=reader_principal.credentials.client_id,\n", |
574 | 574 | " client_secret=reader_principal.credentials.client_secret.get_secret_value(),\n", |
575 | 575 | " grant_type='client_credentials',\n", |
576 | | - " _headers={'realm': 'default-realm'})\n", |
| 576 | + " _headers={'realm': 'POLARIS'})\n", |
577 | 577 | "\n", |
578 | 578 | "# Now create a catalog client that uses the token in its Authentication header\n", |
579 | 579 | "pm_client = IcebergCatalogAPI(CatalogApiClient(CatalogApiClientConfiguration(access_token=pm_token.access_token,\n", |
|
767 | 767 | " client_id=engineer_principal.credentials.client_id,\n", |
768 | 768 | " client_secret=engineer_principal.credentials.client_secret.get_secret_value(),\n", |
769 | 769 | " grant_type='client_credentials',\n", |
770 | | - " _headers={'realm': 'default-realm'})\n", |
| 770 | + " _headers={'realm': 'POLARIS'})\n", |
771 | 771 | "\n", |
772 | 772 | "# The returned token is scoped to _only_ the privileges granted to the ops_engineer role\n", |
773 | 773 | "# The ops_client fails to do any real damage even though the engineer normally has DROP_TABLE privileges\n", |
|
0 commit comments