Skip to content

Commit 81b1fa3

Browse files
committed
v2beta1 -> v2
1 parent 7ff0089 commit 81b1fa3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

firebase_admin/_auth_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, app, tenant_id=None):
5050
if emulator_host:
5151
base_url = 'http://{0}/identitytoolkit.googleapis.com'.format(emulator_host)
5252
endpoint_urls['v1'] = base_url + '/v1'
53-
endpoint_urls['v2beta1'] = base_url + '/v2'
53+
endpoint_urls['v2'] = base_url + '/v2'
5454
credential = _utils.EmulatorAdminCredentials()
5555
self.emulated = True
5656
else:

tests/test_auth_providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
from firebase_admin import exceptions
2424
from tests import testutils
2525

26-
ID_TOOLKIT_URL = 'https://identitytoolkit.googleapis.com/v2beta1'
26+
ID_TOOLKIT_URL = 'https://identitytoolkit.googleapis.com/v2b'
2727
EMULATOR_HOST_ENV_VAR = 'FIREBASE_AUTH_EMULATOR_HOST'
2828
AUTH_EMULATOR_HOST = 'localhost:9099'
29-
EMULATED_ID_TOOLKIT_URL = 'http://{}/identitytoolkit.googleapis.com/v2beta1'.format(
29+
EMULATED_ID_TOOLKIT_URL = 'http://{}/identitytoolkit.googleapis.com/v2b'.format(
3030
AUTH_EMULATOR_HOST)
3131
URL_PROJECT_SUFFIX = '/projects/mock-project-id'
3232
USER_MGT_URLS = {

tests/test_tenant_mgt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
INVALID_BOOLEANS = ['', 1, 0, list(), tuple(), dict()]
118118

119119
USER_MGT_URL_PREFIX = 'https://identitytoolkit.googleapis.com/v1/projects/mock-project-id'
120-
PROVIDER_MGT_URL_PREFIX = 'https://identitytoolkit.googleapis.com/v2beta1/projects/mock-project-id'
121-
TENANT_MGT_URL_PREFIX = 'https://identitytoolkit.googleapis.com/v2beta1/projects/mock-project-id'
120+
PROVIDER_MGT_URL_PREFIX = 'https://identitytoolkit.googleapis.com/v2/projects/mock-project-id'
121+
TENANT_MGT_URL_PREFIX = 'https://identitytoolkit.googleapis.com/v2/projects/mock-project-id'
122122

123123

124124
@pytest.fixture(scope='module')

0 commit comments

Comments
 (0)