Unable to Authenticate if used oAuth type as Default #1199
Unanswered
santuk2355
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
Currently I am using rc5 version of polaris and when I use in-memory for bootstraping the polaris, Eveyrhing works fine. I can able to use the oAuth type default and able to authenticate to polaris.
However when I am trying to bootstrap with Metastore ( postgres DB ), with oAuth type as default, I am unable to authenticate to Polars. I am getting below error when authenticating with polais cli and seeing below error in polaris logs.
Exception: Failed to get access token
DEBUG [2025-03-19 04:11:15,354 - 1074541] [dw-75] [] o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: Creating EclipseLink Meta Store Session for realm default-realm
DEBUG [2025-03-19 04:11:15,361 - 1074548] [dw-75] [] o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: transaction committed
DEBUG [2025-03-19 04:11:15,361 - 1074548] [dw-75] [] o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: Creating EclipseLink Meta Store Session for realm default-realm
INFO [2025-03-19 04:11:15,361 - 1074548] [dw-75] [] o.a.p.s.d.t.TracingFilter: Started span with parent spanId="6f47977e3345c965" traceId="c317c5676aaf8fdf25b6bd3ef50d6312" parentContext="{}"
DEBUG [2025-03-19 04:11:15,363 - 1074550] [dw-75 - POST /api/catalog/v1/oauth/tokens] [] o.a.p.s.c.a.IcebergRestOAuth2Api: Invoking OAuth2Api with params operation="getToken"
DEBUG [2025-03-19 04:11:15,365 - 1074552] [dw-75 - POST /api/catalog/v1/oauth/tokens] [] o.a.p.e.p.i.e.PolarisEclipseLinkMetaStoreSessionImpl: transaction committed
DEBUG [2025-03-19 04:11:15,365 - 1074552] [dw-75 - POST /api/catalog/v1/oauth/tokens] [] o.a.p.s.c.a.IcebergRestOAuth2Api: Completed execution of getToken API with status code 401
Below is the config I am using for metastore bootstrap. ( Helm values ), and I followed below readme to bootstrap the metastore.
https://github.com/apache/polaris/blob/apache-polaris-0.9.0-incubating-rc5/site/content/in-dev/unreleased/configuring-polaris-for-production.md
Please kindly, help me if I am doing anything wrong here .? or doesn't RC5 doesn't support the oAuth for symmteric or Asymmetric .?
Beta Was this translation helpful? Give feedback.
All reactions