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
Is your feature request related to a problem? Please describe.
We're running our emulator suite over https. The auth-api-requests.ts is forcing the scheme http:// which results we're not able to call our emulator suite.
Describe the solution you'd like
I would like to support https by introducing a new environment variable FIREBASE_AUTH_EMULATOR_SCHEME which will default to http, but when set it would use that scheme. Other solution would be that we can change the format itself.
Describe alternatives you've considered
We now local patched the JS file to change the format.
Additional context
Current
auth-api-request.ts
/** Firebase Auth base URlLformat when using the auth emultor. */constFIREBASE_AUTH_EMULATOR_BASE_URL_FORMAT='http://{host}/identitytoolkit.googleapis.com/{version}/projects/{projectId}{api}';
Proposed
/** Firebase Auth base URlLformat when using the auth emultor. */constFIREBASE_AUTH_EMULATOR_BASE_URL_FORMAT='{scheme}://{host}/identitytoolkit.googleapis.com/{version}/projects/{projectId}{api}';classAuthResourceUrlBuilder{protectedurlFormat: string;privateprojectId: string;/** * The resource URL builder constructor. * * @param projectId - The resource project ID. * @param version - The endpoint API version. * @constructor */constructor(protectedapp: App,protectedversion: string='v1'){if(useEmulator()){this.urlFormat=utils.formatString(FIREBASE_AUTH_EMULATOR_BASE_URL_FORMAT,{host: emulatorHost(),scheme: emulatorScheme()||'http'});}else{this.urlFormat=FIREBASE_AUTH_BASE_URL_FORMAT;}}// ......}functionemulatorHost(): string|undefined{returnprocess.env.FIREBASE_AUTH_EMULATOR_HOST}functionemulatorScheme(): string|undefined{returnprocess.env.FIREBASE_AUTH_EMULATOR_SCHEME}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We're running our emulator suite over https. The
auth-api-requests.ts
is forcing the schemehttp://
which results we're not able to call our emulator suite.Describe the solution you'd like
I would like to support
https
by introducing a new environment variableFIREBASE_AUTH_EMULATOR_SCHEME
which will default tohttp
, but when set it would use that scheme. Other solution would be that we can change the format itself.Describe alternatives you've considered
We now local patched the JS file to change the format.
Additional context
Current
auth-api-request.ts
Proposed
The text was updated successfully, but these errors were encountered: