Skip to content

Commit b9a6ea0

Browse files
Merge pull request #3 from ankiitsinghh07/master
Version 11.0.0
2 parents d5510fd + 0390bde commit b9a6ea0

24 files changed

+398
-206
lines changed

CHANGELOG.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,30 @@
11
# LoginRadius Python SDK Change Log
22

3+
# Version 11.0.0
4+
Released on **August 11,2020**
5+
## Enhancements:
6+
- Added a parameter isWeb in "RefreshAccessToken" API.
7+
- Added a parameter SocialAppName in "getAccessTokenByFacebookAccessToken, getAccessTokenByTwitterAccessToken,
8+
getAccessTokenByGoogleAccessToken, getAccessTokenByLinkedinAccessToken, getAccessTokenByAppleIdCode,
9+
getAccessTokenByGoogleAuthCode" Native Social login APIs.
10+
11+
## Added new multiple APIs for better user experience:
12+
- Added linkSocialIdentites(POST) API.
13+
- Added linkSocialIdentitiesByPing(POST) API.
14+
- Added getAccessTokenByAppleIdCode API.
15+
- Added getAccessTokenByWeChatCode API.
16+
17+
## Removed APIs:
18+
- linkSocialIdentity API(PUT)
19+
- getSocialIdentity API(GET)
20+
321
# Version 10.0.1
4-
Release on **Oct 24,2019**
22+
Released on **Oct 24,2019**
523
## Enhancements
624
- Fixed the pip installation issue
725

826
# Version 10.0.0
9-
Release on **September 30,2019**
27+
Released on **September 30,2019**
1028

1129
## Enhancements
1230
This full version release includes major breaking changes with several improvements and optimizations :

Demo/LoginRadius/api/account/account_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ def remove_email(self, email, uid, fields=''):
477477
return self._lr_object.execute("DELETE", resource_path, query_parameters, body_parameters)
478478

479479
def refresh_access_token_by_refresh_token(self, refresh__token):
480-
"""This API is used to refresh an access_token via it's associated refresh_token.
480+
"""This API is used to refresh an access token via it's associated refresh token.
481481
482482
Args:
483-
refresh__token: LoginRadius refresh_token
483+
refresh__token: LoginRadius refresh token
484484
485485
Returns:
486486
Response containing Definition of Complete Token data
@@ -502,7 +502,7 @@ def revoke_refresh_token(self, refresh__token):
502502
"""The Revoke Refresh Access Token API is used to revoke a refresh token or the Provider Access Token, revoking an existing refresh token will invalidate the refresh token but the associated access token will work until the expiry.
503503
504504
Args:
505-
refresh__token: LoginRadius refresh_token
505+
refresh__token: LoginRadius refresh token
506506
507507
Returns:
508508
Response containing Definition of Delete Request

Demo/LoginRadius/api/advanced/customregistrationdata_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def get_registration_data(self, type, limit=None, parent_id=None,
102102
return self._lr_object.execute("GET", resource_path, query_parameters, None)
103103

104104
def add_registration_data(self, registration_data_create_model_list):
105-
"""This API allows you to fill data into a dropdown list which you have created for user Registeration. For more details on how to use this API please see our Custom Registration Data Overview
105+
"""This API allows you to fill data into a dropdown list which you have created for user Registration. For more details on how to use this API please see our Custom Registration Data Overview
106106
107107
Args:
108108
registration_data_create_model_list: Model Class containing Definition of List of Registration Data

Demo/LoginRadius/api/advanced/multifactorauthentication_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, lr_object):
1313
self._lr_object = lr_object
1414

1515
def mfa_configure_by_access_token(self, access_token, sms_template2_f_a=None):
16-
"""This API is used to configure the Multi-factor authentication after login by using the access_token when MFA is set as optional on the LoginRadius site.
16+
"""This API is used to configure the Multi-factor authentication after login by using the access token when MFA is set as optional on the LoginRadius site.
1717
1818
Args:
1919
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.
@@ -126,7 +126,7 @@ def mfa_update_phone_number_by_token(self, access_token, phone_no2_f_a, sms_temp
126126
return self._lr_object.execute("PUT", resource_path, query_parameters, body_parameters)
127127

128128
def mfa_reset_google_auth_by_token(self, access_token, googleauthenticator):
129-
"""This API Resets the Google Authenticator configurations on a given account via the access_token
129+
"""This API Resets the Google Authenticator configurations on a given account via the access token
130130
131131
Args:
132132
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.
@@ -151,7 +151,7 @@ def mfa_reset_google_auth_by_token(self, access_token, googleauthenticator):
151151
return self._lr_object.execute("DELETE", resource_path, query_parameters, body_parameters)
152152

153153
def mfa_reset_sms_auth_by_token(self, access_token, otpauthenticator):
154-
"""This API resets the SMS Authenticator configurations on a given account via the access_token.
154+
"""This API resets the SMS Authenticator configurations on a given account via the access token.
155155
156156
Args:
157157
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.
@@ -176,7 +176,7 @@ def mfa_reset_sms_auth_by_token(self, access_token, otpauthenticator):
176176
return self._lr_object.execute("DELETE", resource_path, query_parameters, body_parameters)
177177

178178
def mfa_backup_code_by_access_token(self, access_token):
179-
"""This API is used to get a set of backup codes via access_token to allow the user login on a site that has Multi-factor Authentication enabled in the event that the user does not have a secondary factor available. We generate 10 codes, each code can only be consumed once. If any user attempts to go over the number of invalid login attempts configured in the Dashboard then the account gets blocked automatically
179+
"""This API is used to get a set of backup codes via access token to allow the user login on a site that has Multi-factor Authentication enabled in the event that the user does not have a secondary factor available. We generate 10 codes, each code can only be consumed once. If any user attempts to go over the number of invalid login attempts configured in the Dashboard then the account gets blocked automatically
180180
181181
Args:
182182
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.
@@ -197,7 +197,7 @@ def mfa_backup_code_by_access_token(self, access_token):
197197
return self._lr_object.execute("GET", resource_path, query_parameters, None)
198198

199199
def mfa_reset_backup_code_by_access_token(self, access_token):
200-
"""API is used to reset the backup codes on a given account via the access_token. This API call will generate 10 new codes, each code can only be consumed once
200+
"""API is used to reset the backup codes on a given account via the access token. This API call will generate 10 new codes, each code can only be consumed once
201201
202202
Args:
203203
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.
@@ -428,7 +428,7 @@ def mfa_validate_google_auth_code(self, google_authenticator_code, second_factor
428428
return self._lr_object.execute("PUT", resource_path, query_parameters, body_parameters)
429429

430430
def mfa_validate_backup_code(self, multi_factor_auth_model_by_backup_code, second_factor_authentication_token, fields=''):
431-
"""This API is used to validate the backup code provided by the user and if valid, we return an access_token allowing the user to login incases where Multi-factor authentication (MFA) is enabled and the secondary factor is unavailable. When a user initially downloads the Backup codes, We generate 10 codes, each code can only be consumed once. if any user attempts to go over the number of invalid login attempts configured in the Dashboard then the account gets blocked automatically
431+
"""This API is used to validate the backup code provided by the user and if valid, we return an access token allowing the user to login incases where Multi-factor authentication (MFA) is enabled and the secondary factor is unavailable. When a user initially downloads the Backup codes, We generate 10 codes, each code can only be consumed once. if any user attempts to go over the number of invalid login attempts configured in the Dashboard then the account gets blocked automatically
432432
433433
Args:
434434
multi_factor_auth_model_by_backup_code: Model Class containing Definition of payload for MultiFactorAuth By BackupCode API

Demo/LoginRadius/api/advanced/reauthentication_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, lr_object):
1313
self._lr_object = lr_object
1414

1515
def mfa_re_authenticate(self, access_token, sms_template2_f_a=None):
16-
"""This API is used to trigger the Multi-Factor Autentication workflow for the provided access_token
16+
"""This API is used to trigger the Multi-Factor Autentication workflow for the provided access token
1717
1818
Args:
1919
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.
@@ -61,7 +61,7 @@ def mfa_re_authenticate_by_otp(self, access_token, reauth_by_otp_model):
6161
return self._lr_object.execute("PUT", resource_path, query_parameters, reauth_by_otp_model)
6262

6363
def mfa_re_authenticate_by_backup_code(self, access_token, reauth_by_backup_code_model):
64-
"""This API is used to re-authenticate by set of backup codes via access_token on the site that has Multi-factor authentication enabled in re-authentication for the user that does not have the device
64+
"""This API is used to re-authenticate by set of backup codes via access token on the site that has Multi-factor authentication enabled in re-authentication for the user that does not have the device
6565
6666
Args:
6767
access_token: Uniquely generated identifier key by LoginRadius that is activated after successful authentication.

0 commit comments

Comments
 (0)