8000 Correct Standard Token Exchange with Dynamic Scopes feature enabled by cgeorgilakis · Pull Request #45820 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ protected String getRequestedScope(AccessToken token, List<ClientModel> targetAu

boolean validScopes;
if (Profile.isFeatureEnabled(Profile.Feature.DYNAMIC_SCOPES)) {
session.getContext().setClient(client);
AuthorizationRequestContext authorizationRequestContext = AuthorizationContextUtil.getAuthorizationRequestContextFromScopes(session, scope);
validScopes = TokenManager.isValidScope(session, scope, authorizationRequestContext, client, null);
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.keycloak.testsuite.oauth.tokenexchange;

import org.keycloak.common.Profile;
import org.keycloak.testsuite.arquillian.annotation.EnableFeature;
import org.keycloak.testsuite.arquillian.annotation.UncaughtServerErrorExpected;

import org.junit.Ignore;
import org.junit.Test;

@EnableFeature(value = Profile.Feature.DYNAMIC_SCOPES, skipRestart = true)
public class StandardTokenExchangeV2WithDynamicScopesTest extends StandardTokenExchangeV2Test {

@Override
@Test
@UncaughtServerErrorExpected
@Ignore
public void testExchangeWithDynamicScopesEnabled(){
}
}
Loading
0