Skip to content

Commit

Permalink
fix: passport authentication failed on first attempt throws oxauth error
Browse files Browse the repository at this point in the history
(works on second attempt with same userid). #1601
  • Loading branch information
yurem committed Jan 4, 2022
1 parent efaa09b commit 1397f6c
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Server/src/main/java/org/gluu/oxauth/uma/authorization/UmaRPT.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,17 @@ public class UmaRPT extends AbstractToken {

@DN
private String dn;

@AttributeName(name = "tknCde", consistency = true)
private String notHashedCode;

@AttributeName(name = "usrId")
private String userId;
@AttributeName(name = "clnId")
private String clientId;
@AttributeName(name = "oxUmaPermission")
private List<String> permissions;

private String notHashedCode;


public UmaRPT() {
super(1);
}
Expand All @@ -46,10 +48,6 @@ public UmaRPT(String code, Date creationDate, Date expirationDate, String userId
this.clientId = clientId;
}

public String getNotHashedCode() {
return notHashedCode;
}

public String getDn() {
return dn;
}
Expand All @@ -58,7 +56,15 @@ public void setDn(String p_dn) {
dn = p_dn;
}

public String getUserId() {
public void setNotHashedCode(String notHashedCode) {
this.notHashedCode = notHashedCode;
}

public String getNotHashedCode() {
return notHashedCode;
}

public String getUserId() {
return userId;
}

Expand Down

0 comments on commit 1397f6c

Please sign in to comment.