diff --git a/kernel/kernel-core/src/main/java/io/mosip/kernel/core/authmanager/authadapter/model/AuthUserDetails.java b/kernel/kernel-core/src/main/java/io/mosip/kernel/core/authmanager/authadapter/model/AuthUserDetails.java index 00e2e87f779..a6a87ccf04f 100644 --- a/kernel/kernel-core/src/main/java/io/mosip/kernel/core/authmanager/authadapter/model/AuthUserDetails.java +++ b/kernel/kernel-core/src/main/java/io/mosip/kernel/core/authmanager/authadapter/model/AuthUserDetails.java @@ -34,6 +34,7 @@ public class AuthUserDetails implements UserDetails { private String mail; private String mobile; private String rId; + private String idToken; private Collection authorities; @@ -45,6 +46,15 @@ public AuthUserDetails(MosipUserDto mosipUserDto, String token) { this.rId = mosipUserDto.getRId(); } + public AuthUserDetails(MosipUserDto mosipUserDto, String token, String idToken) { + this.userId = mosipUserDto.getUserId(); + this.token = token; + this.mail = mosipUserDto.getMail(); + this.mobile = mosipUserDto.getMobile(); + this.rId = mosipUserDto.getRId(); + this.idToken = idToken; + } + @Override public Collection getAuthorities() { return authorities; @@ -142,4 +152,12 @@ public String getrId() { public void setrId(String rId) { this.rId = rId; } + + public String getIdToken() { + return idToken; + } + + public void setIdToken(String idToken) { + this.idToken = idToken; + } } \ No newline at end of file