From f035c57673b5609da3613d30b9b516f545f90f95 Mon Sep 17 00:00:00 2001 From: ch4mpy Date: Mon, 14 Aug 2023 06:24:06 -1000 Subject: [PATCH] Add getters to OAuth2AuthorizedClientId --- .../security/oauth2/client/OAuth2AuthorizedClientId.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {