diff --git a/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/OAuth2AuthorizedClientId.java b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/OAuth2AuthorizedClientId.java index 4662679fd08..eee6e902db0 100644 --- a/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/OAuth2AuthorizedClientId.java +++ b/oauth2/oauth2-client/src/main/java/org/springframework/security/oauth2/client/OAuth2AuthorizedClientId.java @@ -50,6 +50,14 @@ public OAuth2AuthorizedClientId(String clientRegistrationId, String principalNam this.principalName = principalName; } + public String getClientRegistrationId() { + return this.clientRegistrationId; + } + + public String getPrincipalName() { + return this.principalName; + } + @Override public boolean equals(Object obj) { if (this == obj) {