Skip to content
Merged
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
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ at locations that better optimize for object storage.

### Deprecations

* The property `polaris.active-roles-provider.type` is deprecated in favor of
`polaris.authentication.active-roles-provider.type`. The old property is still supported, but will be removed in a
future release.
- The property `polaris.active-roles-provider.type` is deprecated for removal.
- The `ActiveRolesProvider` interface is deprecated for removal.

### Fixes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
* authentication.
*/
@ApplicationScoped
@Deprecated
public class ActiveRolesAugmentor implements SecurityIdentityAugmentor {

// must run after AuthenticatingAugmentor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
* Provides the active roles for a given principal. Implementations may rely on the active request
* or SecurityContext to determine the active roles.
*/
@Deprecated
public interface ActiveRolesProvider {
/**
* Returns the active roles for the given principal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ interface AuthenticatorConfiguration {
* The configuration for the active roles provider. The active roles provider is responsible for
* determining the active roles for a given Polaris principal.
*/
@Deprecated
ActiveRolesProviderConfiguration activeRolesProvider();

interface ActiveRolesProviderConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
*/
@RequestScoped
@Identifier("default")
@Deprecated
public class DefaultActiveRolesProvider implements ActiveRolesProvider {
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultActiveRolesProvider.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ public AuthenticationRealmConfiguration realmAuthConfig(
}

@Produces
@Deprecated
public ActiveRolesProvider activeRolesProvider(
AuthenticationRealmConfiguration config,
@Any Instance<ActiveRolesProvider> activeRolesProviders) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

@SuppressWarnings("deprecation")
public class ActiveRolesAugmentorTest {

private ActiveRolesAugmentor augmentor;
Expand Down