nika-qubit commented on issue #12196: URL: https://github.com/apache/iceberg/issues/12196#issuecomment-2896409199
Thanks for the response @adutra When I tried using dremio/iceberg-auth-manager with spark and these conf: ``` ...rest.auth.oauth2.token-endpoint=https://oauth2.googleapis.com/token ...rest.auth.oauth2.grant-type=authorization_code ``` I received such an error ``` <a href=//www.google.com/><span id=logo aria-label=Google></span></a> <p><b>404.</b> <ins>That’s an error.</ins> <p>The requested URL <code>/token/.well-known/openid-configuration</code> was not found on this server. <ins>That’s all we know.</ins> ``` Then I swtiched to use this conf ``` ...rest.auth.oauth2.authorization-endpoint=https://oauth2.googleapis.com/token ``` But I got a different error ``` Exception in thread "main" java.lang.IllegalArgumentException: OAuth2 agent has configuration errors and could not be initialized: - either issuer URL or token endpoint must be set (rest.auth.oauth2.issuer-url / rest.auth.oauth2.token-endpoint) ``` Then I switched to this conf ``` ...rest.auth.oauth2.token-endpoint=https://oauth2.googleapis.com/token ``` It gave me another exception ``` Exception in thread "main" java.lang.IllegalArgumentException: OAuth2 agent has configuration errors and could not be initialized: - either issuer URL or authorization endpoint must be set if grant type is 'authorization_code' (rest.auth.oauth2.issuer-url / rest.auth.oauth2.auth-code.endpoint) ``` The authorization code flow still doesn't work for me. Should I extend an AuthManager implementation specifically for GCP so that this kind of interaction would work? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
