Skip to content

Commit 6c951c3

Browse files
committed
Example of allowing /z/ in the GET /oauth/token
1 parent af5bb78 commit 6c951c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/cloudfoundry/identity/uaa/oauth/beans/OauthEndpointSecurityConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ UaaFilterChain statelessTokenApiSecurity(HttpSecurity http) throws Exception {
348348
@Order(FilterChainOrder.OAUTH_05)
349349
UaaFilterChain tokenEndpointSecurity(HttpSecurity http) throws Exception {
350350
SecurityFilterChain chain = http
351-
.securityMatcher("/oauth/token/**")
351+
.securityMatcher("/oauth/token/**", "/z/*/oauth/token/**")
352352
.authenticationManager(clientAuthenticationManager)
353353
.authorizeHttpRequests( auth -> {
354354
auth.requestMatchers("/**").access(anyOf().fullyAuthenticated());

server/src/main/java/org/cloudfoundry/identity/uaa/oauth/token/UaaTokenEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import static org.springframework.util.StringUtils.hasText;
3232

3333
@Controller
34-
@RequestMapping(value = "/oauth/token") //used simply because TokenEndpoint wont match /oauth/token/alias/saml-entity-id
34+
@RequestMapping(path = {"/oauth/token", "/z/{subdomain}/oauth/token"}) //used simply because TokenEndpoint wont match /oauth/token/alias/saml-entity-id
3535
public class UaaTokenEndpoint extends TokenEndpoint {
3636

3737
private final boolean allowQueryString;

0 commit comments

Comments
 (0)