You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Some API devs want to connect a testing servers which have different auth story; right now gax-nodejs codebase is troublesome for such environment, because it always attempts to obtain the auth token and invokes combineChannelCredentials.
I'm not sure if it's still there, but we used to allow disabling the token-fetching stage for scenarios where a user is in an emulator. I don't think we exposed a user-accessible setting, i.e. "options.disableAuth", but rather, we were able to internally bypass the auth step when we knew it wasn't needed-- when a user provided their own options.apiEndpoint host (usually to point to their emulator) or when we detected, i.e. DATASTORE_EMULATOR_HOST or the equivalent in other languages.
Activity
Add the code path to skip auth.
stephenplusplus commentedon May 5, 2017
This is the part that throws the errors referenced in #489.
@landrito
landrito commentedon May 5, 2017
Noted and assigned!
JustinBeckwith commentedon Feb 10, 2019
@stephenplusplus I'm a tad confused on this one :) Is this something we do for the other APIs in any places?
stephenplusplus commentedon Feb 11, 2019
I'm not sure if it's still there, but we used to allow disabling the token-fetching stage for scenarios where a user is in an emulator. I don't think we exposed a user-accessible setting, i.e. "options.disableAuth", but rather, we were able to internally bypass the auth step when we knew it wasn't needed-- when a user provided their own
options.apiEndpointhost (usually to point to their emulator) or when we detected, i.e.DATASTORE_EMULATOR_HOSTor the equivalent in other languages.alexander-fenster commentedon Jul 21, 2022
This is an old issue, I'll add the code snippet still:
chore(deps): update dependency sinon to v15 (#495)
chore(deps): update dependency sinon to v15 (#495)
chores(build): run codecov on continuous builds (googleapis#495)