Skip to content

Commit

Permalink
Update Pac4jPrincipal.java (#245)
Browse files Browse the repository at this point in the history
return the principal name as toString() answer
  • Loading branch information
polli62 committed Nov 7, 2023
1 parent ed70601 commit 1a206c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/io/buji/pac4j/subject/Pac4jPrincipal.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ public int hashCode() {
return profiles != null ? profiles.hashCode() : 0;
}

@Override
public String toString() {
return getName();
}

/**
* Returns a name for the principal based upon one of the attributes
* of the main CommonProfile. The attribute name used to query the CommonProfile
Expand Down

0 comments on commit 1a206c7

Please sign in to comment.