Skip to content

Commit

Permalink
MOSIP-23838 Added idToken in AuthUserDetails.
Browse files Browse the repository at this point in the history
  • Loading branch information
kameshsr committed Sep 27, 2022
1 parent d9294a4 commit 95795a3
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class AuthUserDetails implements UserDetails {
private String mail;
private String mobile;
private String rId;
private String idToken;

private Collection<? extends GrantedAuthority> authorities;

Expand All @@ -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<? extends GrantedAuthority> getAuthorities() {
return authorities;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 95795a3

Please sign in to comment.