Skip to content

Commit

Permalink
Release version 11.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
indrasen715 committed Sep 9, 2021
1 parent 824fe98 commit 648e66b
Show file tree
Hide file tree
Showing 56 changed files with 1,814 additions and 264 deletions.
71 changes: 70 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,81 @@
> **LoginRadius .NET SDK Change Log** provides information regarding what has changed, more specifically what changes, improvements and bug fix has been made to the SDK. For more details please refer to the [LoginRadius API Documention](https://docs.loginradius.com/api/v2/sdk-libraries/aspnet)

# Version 11.2.0

Release on **September 7, 2021**

## Enhancements
- Minor code refactor.
- Support for appsettings.Environment.json : For example, the appsettings.Production.json and appsettings.Development.json files. The environment version of the file is loaded based on the IHostingEnvironment.EnvironmentName.
- Added X-Origin-IP header support.
- Added 429 error code handling for "Too Many Request in a particular time frame".
- Updated Jquery with latest version(3.6.0) in SDK Demo

## Added new multiple APIs for better user experience
- MFAEmailOtpByAccessToken
- MFAValidateEmailOtpByAccessToken
- MFAResetEmailOtpAuthenticatorByAccessToken
- MFASecurityQuestionAnswerByAccessToken
- MFAResetSecurityQuestionAuthenticatorByAccessToken
- MFAEmailOTP
- MFAValidateEmailOtp
- MFASecurityQuestionAnswer
- MFASecurityQuestionAnswerVerification
- MFAResetEmailOtpAuthenticatorByUid
- MFAResetSecurityQuestionAuthenticatorByUid
- ReAuthValidateEmailOtp
- ReAuthSendEmailOtp
- ReAuthBySecurityQuestion
- PasswordlessLoginVerificationByUserNameAndOTP
- PasswordlessLoginVerificationByEmailAndOTP
- GetProfileByPing
- GetAccessTokenByWeChatCode
- GetAccessTokenByAppleIdCode
- LinkSocialIdentitiesByPing (POST)
- linkSocialIdentities(POST)

## Removed APIs:

- GetSocialUserProfile
- linkSocialIdentity (PUT)
- getSocialIdentity (GET)

#### Added `EmailTemplate2FA` parameter in the following API
- MFALoginByEmail
- MFALoginByUserName
- MFALoginByPhone

#### Added `RbaBrowserEmailTemplate`, `RbaCityEmailTemplate` ,`RbaCountryEmailTemplate` , `RbaIpEmailTemplate` parameter in the following API
- MFAValidateOTPByPhone
- MFAValidateGoogleAuthCode
- MFAValidateBackupCode

#### Added `emailTemplate`, `verificationUrl` ,`welcomeEmailTemplate` parameter in the following API

- GetProfileByAccessToken

## Removed `smsTemplate2FA` parameter from the following API

- mfaValidateGoogleAuthCode

#### Added `isWeb` parameter in the following API
- RefreshAccessToken

#### Added `socialAppName` parameter in the following Native Social Login API
- GetAccessTokenByFacebookAccessToken
- GetAccessTokenByTwitterAccessToken
- GetAccessTokenByGoogleAccessToken
- GetAccessTokenByLinkedinAccessToken
- GetAccessTokenByAppleIdCode
- GetAccessTokenByGoogleAuthCode

# Version 11.0.0
Release on **March 05, 2021**

## Enhancements

- Updated all API Methods in async/await to solving thread performance or scalability problems.
- Updated all API Method in async/await to solving thread performance or scalability problems.
- Added new JWT Token Validate Method in SDK.

# Version 10.0.0
Expand Down
481 changes: 415 additions & 66 deletions README.md

Large diffs are not rendered by default.

49 changes: 33 additions & 16 deletions Samples/dot-net-demo/dot-net-demo.sln
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2042
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "dot-net-demo", "dot-net-demo\dot-net-demo.csproj", "{06151FFF-1468-42F2-A648-4871EA9A5EA2}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dot-net-demo", "dot-net-demo\dot-net-demo.csproj", "{056C0431-02A0-4924-9FAC-C0294B30036D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LoginRadiusSDK.V2", "..\..\Source\LoginRadiusSDK.V2\LoginRadiusSDK.V2.csproj", "{59EF24E1-C310-42D5-B09C-CFBF74FEE30F}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoginRadiusSDK.V2", "..\..\Source\LoginRadiusSDK.V2\LoginRadiusSDK.V2.csproj", "{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{06151FFF-1468-42F2-A648-4871EA9A5EA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{06151FFF-1468-42F2-A648-4871EA9A5EA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{06151FFF-1468-42F2-A648-4871EA9A5EA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{06151FFF-1468-42F2-A648-4871EA9A5EA2}.Release|Any CPU.Build.0 = Release|Any CPU
{59EF24E1-C310-42D5-B09C-CFBF74FEE30F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59EF24E1-C310-42D5-B09C-CFBF74FEE30F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59EF24E1-C310-42D5-B09C-CFBF74FEE30F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59EF24E1-C310-42D5-B09C-CFBF74FEE30F}.Release|Any CPU.Build.0 = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {486F3BF1-1DD2-4EF4-9681-7B752770AE85}
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{056C0431-02A0-4924-9FAC-C0294B30036D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Debug|x64.ActiveCfg = Debug|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Debug|x64.Build.0 = Debug|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Debug|x86.ActiveCfg = Debug|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Debug|x86.Build.0 = Debug|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Release|Any CPU.Build.0 = Release|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Release|x64.ActiveCfg = Release|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Release|x64.Build.0 = Release|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Release|x86.ActiveCfg = Release|Any CPU
{056C0431-02A0-4924-9FAC-C0294B30036D}.Release|x86.Build.0 = Release|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Debug|x64.ActiveCfg = Debug|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Debug|x64.Build.0 = Debug|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Debug|x86.ActiveCfg = Debug|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Debug|x86.Build.0 = Debug|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Release|Any CPU.Build.0 = Release|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Release|x64.ActiveCfg = Release|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Release|x64.Build.0 = Release|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Release|x86.ActiveCfg = Release|Any CPU
{AFE0FC30-686E-4866-B8B5-D5469D71AFFD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="../css/style.css" rel="stylesheet" />
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/jquery-3.6.0.min.js"></script>
</head>

<body>
Expand Down
2 changes: 1 addition & 1 deletion Samples/dot-net-demo/dot-net-demo/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="css/style.css" rel="stylesheet" />
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-3.6.0.min.js"></script>
<script src="https://auth.lrcontent.com/v2/js/LoginRadiusV2.js"></script>
<script src="js/options.js"></script>
<script type="text/html" id="loginradiuscustom_tmpl">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="../css/style.css" rel="stylesheet" />
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/jquery-3.6.0.min.js"></script>
<script src="https://auth.lrcontent.com/v2/js/LoginRadiusV2.js"></script>
<script src="../js/LoginRadiusLoginScreen.1.0.0.js"></script>
<script src="../js/options.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="../css/style.css" rel="stylesheet" />
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/jquery-3.6.0.min.js"></script>
<script src="https://auth.lrcontent.com/v2/js/LoginRadiusV2.js"></script>
<script src="../js/options.js"></script>
</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="../css/style.css" rel="stylesheet" />
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/jquery-3.6.0.min.js"></script>
</head>

<body>
Expand Down

This file was deleted.

Large diffs are not rendered by default.

31 changes: 20 additions & 11 deletions Source/LoginRadiusSDK.V2.sln
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LoginRadiusSDK.V2", "LoginRadiusSDK.V2\LoginRadiusSDK.V2.csproj", "{7A282396-876E-4CE8-8A8A-8550C369B1A3}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoginRadiusSDK.V2", "LoginRadiusSDK.V2\LoginRadiusSDK.V2.csproj", "{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7A282396-876E-4CE8-8A8A-8550C369B1A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7A282396-876E-4CE8-8A8A-8550C369B1A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7A282396-876E-4CE8-8A8A-8550C369B1A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7A282396-876E-4CE8-8A8A-8550C369B1A3}.Release|Any CPU.Build.0 = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4A2A8631-2FFF-4F69-A5CA-41D006C30B93}
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Debug|x64.ActiveCfg = Debug|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Debug|x64.Build.0 = Debug|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Debug|x86.ActiveCfg = Debug|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Debug|x86.Build.0 = Debug|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Release|Any CPU.Build.0 = Release|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Release|x64.ActiveCfg = Release|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Release|x64.Build.0 = Release|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Release|x86.ActiveCfg = Release|Any CPU
{185CACBC-1036-40EE-87C1-FA80CB3DA3B3}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
8 changes: 4 additions & 4 deletions Source/LoginRadiusSDK.V2/Api/Account/AccountApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

using System;
using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels.OtherObjects;
using LoginRadiusSDK.V2.Models.ResponseModels.UserProfile;
using LoginRadiusSDK.V2.Models.RequestModels;
using LoginRadiusSDK.V2.Models.ResponseModels;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Account
{
Expand Down Expand Up @@ -608,9 +608,9 @@ public async Task<ApiResponse<Identity>> RemoveEmail(string email, string uid,
return await ConfigureAndExecute<Identity>(HttpMethod.DELETE, resourcePath, queryParameters, ConvertToJson(bodyParameters));
}
/// <summary>
/// This API is used to refresh an access_token via it's associated refresh_token.
/// This API is used to refresh an access token via it's associated refresh token.
/// </summary>
/// <param name="refreshToken">LoginRadius refresh_token</param>
/// <param name="refreshToken">LoginRadius refresh token</param>
/// <returns>Response containing Definition of Complete Token data</returns>
/// 18.31

Expand All @@ -634,7 +634,7 @@ public async Task<ApiResponse<AccessToken>> RefreshAccessTokenByRefreshToken(str
/// <summary>
/// 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.
/// </summary>
/// <param name="refreshToken">LoginRadius refresh_token</param>
/// <param name="refreshToken">LoginRadius refresh token</param>
/// <returns>Response containing Definition of Delete Request</returns>
/// 18.32

Expand Down
2 changes: 1 addition & 1 deletion Source/LoginRadiusSDK.V2/Api/Account/RoleApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@

using System;
using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels.OtherObjects;
using LoginRadiusSDK.V2.Models.RequestModels;
using LoginRadiusSDK.V2.Models.ResponseModels;
using LoginRadiusSDK.V2.Models.ResponseModels.UserProfile.Objects;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Account
{
Expand Down
2 changes: 1 addition & 1 deletion Source/LoginRadiusSDK.V2/Api/Account/SottApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//-----------------------------------------------------------------------

using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Account
{
Expand Down
5 changes: 1 addition & 4 deletions Source/LoginRadiusSDK.V2/Api/Advanced/ConfigurationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
//-----------------------------------------------------------------------

using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels.OtherObjects;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Advanced
{
Expand All @@ -26,10 +26,7 @@ public async Task<ApiResponse<ConfigResponseModel>> GetConfigurations()
{ "apiKey", ConfigDictionary[LRConfigConstants.LoginRadiusApiKey] }
};
var resourcePath = "ciam/appinfo";

return await ConfigureAndExecute<ConfigResponseModel>(HttpMethod.GET, resourcePath, queryParameters, null);


}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

using System;
using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels;
using LoginRadiusSDK.V2.Models.ResponseModels.UserProfile;
using LoginRadiusSDK.V2.Models.RequestModels;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Advanced
{
Expand Down
4 changes: 2 additions & 2 deletions Source/LoginRadiusSDK.V2/Api/Advanced/CustomObjectApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

using System;
using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels;
using LoginRadiusSDK.V2.Models.ResponseModels.OtherObjects;
using LoginRadiusSDK.V2.Models.Enums;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Advanced
{
public class CustomObjectApi : LoginRadiusResource
public class CustomObjectApi : LoginRadiusResource
{
/// <summary>
/// This API is used to write information in JSON format to the custom object for the specified account.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
using System;
using System.Collections.Generic;
using LoginRadiusSDK.V2.Common;
using System.Threading.Tasks;
using LoginRadiusSDK.V2.Util;
using LoginRadiusSDK.V2.Models.ResponseModels.OtherObjects;
using LoginRadiusSDK.V2.Models.RequestModels;
using System.Threading.Tasks;

namespace LoginRadiusSDK.V2.Api.Advanced
{
Expand Down Expand Up @@ -128,7 +128,7 @@ public async Task<ApiResponse<List<RegistrationDataField>>> GetRegistrationData(
return await ConfigureAndExecute<List<RegistrationDataField>>(HttpMethod.GET, resourcePath, queryParameters, null);
}
/// <summary>
/// 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
/// 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
/// </summary>
/// <param name="registrationDataCreateModelList">Model Class containing Definition of List of Registration Data</param>
/// <returns>Response containing Definition of Complete Validation data</returns>
Expand Down
Loading

0 comments on commit 648e66b

Please sign in to comment.