Skip to content

Commit ac9ce7e

Browse files
Merge pull request #427 from supertokens/fix/tp-providers
fix: Thirdparty providers bitbucket, boxy, and fb
2 parents 5814a00 + 94791b2 commit ac9ce7e

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [unreleased]
1010

11+
## [0.15.2] - 2023-09-23
12+
13+
- Fixed bugs in thirdparty providers: Bitbucket, Boxy-SAML, and Facebook
14+
1115
## [0.15.1] - 2023-09-22
1216
- Fixes name of passwordless recipe function from `passwordlessSigninup` to `passwordless_signinup`
1317

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070

7171
setup(
7272
name="supertokens_python",
73-
version="0.15.1",
73+
version="0.15.2",
7474
author="SuperTokens",
7575
license="Apache 2.0",
7676
author_email="[email protected]",

supertokens_python/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from __future__ import annotations
1515

1616
SUPPORTED_CDI_VERSIONS = ["3.0"]
17-
VERSION = "0.15.1"
17+
VERSION = "0.15.2"
1818
TELEMETRY = "/telemetry"
1919
USER_COUNT = "/users/count"
2020
USER_DELETE = "/user/remove"

supertokens_python/recipe/thirdparty/providers/bitbucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def get_user_info(
7777

7878
email = None
7979
is_verified = False
80-
for email_info in user_info_from_email.values():
80+
for email_info in user_info_from_email["values"]:
8181
if email_info["is_primary"]:
8282
email = email_info["email"]
8383
is_verified = email_info["is_confirmed"]

supertokens_python/recipe/thirdparty/providers/boxy_saml.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def BoxySAML(input: ProviderInput) -> Provider: # pylint: disable=redefined-bui
5656
if input.config.user_info_map is None:
5757
input.config.user_info_map = UserInfoMap(UserFields(), UserFields())
5858

59-
if input.config.user_info_map.from_id_token_payload is None:
60-
input.config.user_info_map.from_id_token_payload = UserFields()
59+
if input.config.user_info_map.from_user_info_api is None:
60+
input.config.user_info_map.from_user_info_api = UserFields()
6161

62-
if input.config.user_info_map.from_id_token_payload.user_id is None:
63-
input.config.user_info_map.from_id_token_payload.user_id = "id"
62+
if input.config.user_info_map.from_user_info_api.user_id is None:
63+
input.config.user_info_map.from_user_info_api.user_id = "id"
6464

65-
if input.config.user_info_map.from_id_token_payload.email is None:
66-
input.config.user_info_map.from_id_token_payload.email = "email"
65+
if input.config.user_info_map.from_user_info_api.email is None:
66+
input.config.user_info_map.from_user_info_api.email = "email"
6767

6868
return NewProvider(input, BoxySAMLImpl)

supertokens_python/recipe/thirdparty/providers/facebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def get_config_for_client_type(
3737
config = await super().get_config_for_client_type(client_type, user_context)
3838

3939
if config.scope is None:
40-
config.scope = ["identify", "email"]
40+
config.scope = ["email"]
4141

4242
return config
4343

0 commit comments

Comments
 (0)