Skip to content

Commit

Permalink
Released 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GovindMalviya committed Sep 6, 2017
1 parent 6713fde commit ceb436a
Show file tree
Hide file tree
Showing 66 changed files with 2,266 additions and 70 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
> **LoginRadius Java 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://github.com/LoginRadius/java-sdk)
### Version 3.4.0
Released on **September 06, 2017**

##### Enhancements

- Added new verified and unverified both email ids stored in different profile fields.
- Added new projection of fields in all APIs
- Added new verify auto login email API.
- Added new management API to generate SOTT.
- Added new context role expiration in add/update role context API.
- Added new risk based authentication in login API.
- Significantly improved code performance.

### Version 3.3.0
Released on **July 20, 2017**

##### Enhancements

- Added new Custom Registration Data APIs.
- Added new Get Security Questions By Access Token, Email, UserName and Phone APIs
- Added new Get Security Questions By Access Token,Email,UserName and Phone APIs
- Added new Simplified Registration APIs.
- Significantly improved code performance.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Use the following dependency in your project:
<dependency>
<groupId>com.loginradius.sdk</groupId>
<artifactId>java-sdk</artifactId>
<version>3.3.0</version>
<version>3.4.0</version>
</dependency>
```
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/LoginRadius-JavaSDK/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.loginradius.sdk</groupId>
<artifactId>java-sdk</artifactId>
<version>3.3.0</version>
<version>3.4.0</version>
<description>LoginRadius java SDK contains registration and social APIs</description>
<url>https://github.com/LoginRadius/java-sdk</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ public String getResponse(String token) {
} else if ("gettrackablestatusstats".equals(method)) {
params.put("access_token", token);
finalpath = Endpoint.getV2_STATUS() + "/trackable/js";
}else if ("getactivesession".equals(method)) {
params.put("token", token);
finalpath = Endpoint.getV2_AdvancedAccessTokenViaSocialToken() + "activesession";
}

return executeGet(finalpath, params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ public String getResponse(String token) {
}else if ("securityquestionsbyphone".equals(method)) {
finalpath = Endpoint.getGetSecurityQuestionsByAccessToken()+"/phone";

}else if ("verifyautologinemail".equals(method)) {
finalpath = Endpoint.getAutoLoginEmailVerify();

}

return executeGet(finalpath, params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public String getResponse(String token) {
finalpath = Endpoint.getForgotPasswordUrlEmail();
}else if ("validatesecretcode".equals(method)) {
finalpath = Endpoint.getGetRegistrationData()+"/validatecode";
}else if ("emaillogin".equals(method)) {
finalpath = Endpoint.getLoginUrl();
}else if ("usernamelogin".equals(method)) {
finalpath = Endpoint.getLoginUrl();
}

return executePost(finalpath, params, json);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@ public String getResponse(String token) {
params.remove("type");
finalpath = Endpoint.getGetRegistrationData_Management() +"/"+type;

}
}else if ("generatesott".equals(method)) {
if(params.containsKey("timedifference") &&params.get("timedifference").equals("")){
params.remove("timedifference");}
finalpath = Endpoint.getV2_ManagementCreateAccount()+"/sott";


}
return executeGet(finalpath, params);

}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.loginradius.sdk.models;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class ExtraInfo {
@SerializedName("Description")
@Expose
private String description;
@SerializedName("ErrorCode")
@Expose
private Integer errorCode;
@SerializedName("Message")
@Expose
private String message;

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

public Integer getErrorCode() {
return errorCode;
}

public void setErrorCode(Integer errorCode) {
this.errorCode = errorCode;
}

public String getMessage() {
return message;
}

public void setMessage(String message) {
this.message = message;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.loginradius.sdk.models;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class VerifiedResponse {
@SerializedName("IsVerified")
@Expose
private Boolean isVerified;

public Boolean getIsVerified() {
return isVerified;
}

public void setIsVerified(Boolean isVerified) {
this.isVerified = isVerified;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
package com.loginradius.sdk.models.activesession;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class ActiveSessionData {

@SerializedName("AccessToken")
@Expose
private String accessToken;
@SerializedName("Browser")
@Expose
private String browser;
@SerializedName("Device")
@Expose
private String device;
@SerializedName("Os")
@Expose
private String os;
@SerializedName("DeviceType")
@Expose
private String deviceType;
@SerializedName("City")
@Expose
private String city;
@SerializedName("Country")
@Expose
private String country;
@SerializedName("Ip")
@Expose
private String ip;
@SerializedName("LoginDate")
@Expose
private String loginDate;

public String getAccessToken() {
return accessToken;
}

public void setAccessToken(String accessToken) {
this.accessToken = accessToken;
}

public String getBrowser() {
return browser;
}

public void setBrowser(String browser) {
this.browser = browser;
}

public String getDevice() {
return device;
}

public void setDevice(String device) {
this.device = device;
}

public String getOs() {
return os;
}

public void setOs(String os) {
this.os = os;
}

public String getDeviceType() {
return deviceType;
}

public void setDeviceType(String deviceType) {
this.deviceType = deviceType;
}

public String getCity() {
return city;
}

public void setCity(String city) {
this.city = city;
}

public String getCountry() {
return country;
}

public void setCountry(String country) {
this.country = country;
}

public String getIp() {
return ip;
}

public void setIp(String ip) {
this.ip = ip;
}

public String getLoginDate() {
return loginDate;
}

public void setLoginDate(String loginDate) {
this.loginDate = loginDate;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.loginradius.sdk.models.activesession;

import java.util.List;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class ActiveSessionResponse {
@SerializedName("data")
@Expose
private List<ActiveSessionData> data = null;
@SerializedName("nextcursor")
@Expose
private Integer nextcursor;

public List<ActiveSessionData> getData() {
return data;
}

public void setData(List<ActiveSessionData> data) {
this.data = data;
}

public Integer getNextcursor() {
return nextcursor;
}

public void setNextcursor(Integer nextcursor) {
this.nextcursor = nextcursor;
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.loginradius.sdk.models.userprofile.UnverifiedEmail;
import com.loginradius.sdk.models.userprofile.identity.Identity;

import java.util.ArrayList;
import java.util.List;


public class Profile {

@SerializedName("Identities")
@Expose
private Object identities;
@SerializedName("Identities")
private List<Identity> identities = null;
@SerializedName("PasswordExpirationDate")
@Expose
private Object passwordExpirationDate;
Expand Down Expand Up @@ -93,7 +93,7 @@ public class Profile {
private Object website;
@SerializedName("Email")
@Expose
private List<Email> email = new ArrayList<Email>();
private List<Email> email;
@SerializedName("Country")
@Expose
private Object country;
Expand Down Expand Up @@ -153,7 +153,7 @@ public class Profile {
private Object educations;
@SerializedName("PhoneNumbers")
@Expose
private List<PhoneNumber> phoneNumbers = new ArrayList<PhoneNumber>();
private List<PhoneNumber> phoneNumbers;
@SerializedName("IMAccounts")
@Expose
private Object iMAccounts;
Expand Down Expand Up @@ -384,23 +384,22 @@ public class Profile {
@Expose
private String lastLoginDate;

@SerializedName("UnverifiedEmail")

private List<UnverifiedEmail> unverifiedEmail = null;

/**
*
* @return
* The identities
*/
public Object getIdentities() {
return identities;
}
public List<Identity> getIdentities() {
return identities;
}

/**
*
* @param identities
* The Identities
*/
public void setIdentities(Object identities) {
this.identities = identities;
}
public void setIdentities(List<Identity> identities) {
this.identities = identities;
}

/**
*
Expand Down Expand Up @@ -2599,5 +2598,15 @@ public void setLastLoginDate(String lastLoginDate) {
this.lastLoginDate = lastLoginDate;
}


public List<UnverifiedEmail> getUnverifiedEmail() {
return unverifiedEmail;
}

public void setUnverifiedEmail(List<UnverifiedEmail> unverifiedEmail) {
this.unverifiedEmail = unverifiedEmail;
}



}
Loading

0 comments on commit ceb436a

Please sign in to comment.