|
26 | 26 | import javax.inject.Inject;
|
27 | 27 | import java.io.Serializable;
|
28 | 28 | import java.time.Duration;
|
| 29 | +import java.util.Collections; |
| 30 | +import java.util.HashSet; |
| 31 | +import java.util.List; |
| 32 | +import java.util.Set; |
29 | 33 |
|
30 | 34 | public class SsoConfiguration implements Serializable {
|
31 | 35 |
|
@@ -63,6 +67,14 @@ public class SsoConfiguration implements Serializable {
|
63 | 67 | @Config("sso.clientSecret")
|
64 | 68 | private String clientSecret;
|
65 | 69 |
|
| 70 | + @Inject |
| 71 | + @Config("sso.pfed.bearerToken.enableBearerTokens") |
| 72 | + private boolean enableBearerTokens; |
| 73 | + |
| 74 | + @Inject |
| 75 | + @Config("sso.pfed.bearerToken.allowAllClientIds") |
| 76 | + private boolean allowAllClientIds; |
| 77 | + |
66 | 78 | @Inject
|
67 | 79 | @Nullable
|
68 | 80 | @Config("sso.tokenSigningKey")
|
@@ -103,6 +115,10 @@ public class SsoConfiguration implements Serializable {
|
103 | 115 | @Config("sso.autoCreateUsers")
|
104 | 116 | private boolean autoCreateUsers;
|
105 | 117 |
|
| 118 | + @Inject |
| 119 | + @Config("sso.pfed.bearerToken.allowedClientIds") |
| 120 | + private Set<String> allowedClientIds; |
| 121 | + |
106 | 122 | public boolean isAutoCreateUsers() {
|
107 | 123 | return autoCreateUsers;
|
108 | 124 | }
|
@@ -135,6 +151,14 @@ public String getClientSecret() {
|
135 | 151 | return clientSecret;
|
136 | 152 | }
|
137 | 153 |
|
| 154 | + public boolean getEnableBearerTokens() { |
| 155 | + return enableBearerTokens; |
| 156 | + } |
| 157 | + |
| 158 | + public boolean getAllowAllClientIds() { |
| 159 | + return allowAllClientIds; |
| 160 | + } |
| 161 | + |
138 | 162 | public String getTokenEncryptionKey() {
|
139 | 163 | return tokenEncryptionKey;
|
140 | 164 | }
|
@@ -170,4 +194,9 @@ public boolean isTokenSignatureValidation() {
|
170 | 194 | public String getUserInfoEndpointUrl() {
|
171 | 195 | return userInfoEndpointUrl;
|
172 | 196 | }
|
| 197 | + |
| 198 | + public Set<String> getAllowedClientIds() { |
| 199 | + return allowedClientIds; |
| 200 | + } |
| 201 | + |
173 | 202 | }
|
0 commit comments