-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Username assertion for web browser auth #2142
base: main
Are you sure you want to change the base?
Conversation
All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
I'm sorry, this doesn't work for me. I think |
@sfc-gh-mkeller Ive tested the forked repo in my Snowflake Code, the user context is able to be derived from the webbrowser, and scripts run successfully. Is there any supporting evidence needed to take this further? Were migrating from the JS SDK to the python SDK, in JS SDK the username is not a parameter for webbrowser auth |
@@ -1238,7 +1238,7 @@ def __config(self, **kwargs): | |||
self._token = f.read() | |||
|
|||
if not (self._master_token and self._session_token): | |||
if not self.user and self._authenticator != OAUTH_AUTHENTICATOR: | |||
if not self.user and self._authenticator != OAUTH_AUTHENTICATOR and self._authenticator != EXTERNAL_BROWSER_AUTHENTICATOR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's true that for authentication itself user is not required, but it is required for storing a temporary credential (token) in the cache storage, to identify the owner.
Please answer these questions before submitting your pull requests. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1892848: Web Browser Auth doesnt need user to be passed but asserts it #2143
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
Ignoring missing username for external browser auth
(Optional) PR for stored-proc connector: