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
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.quarkus.oidc.token.propagation.common.deployment;

import java.util.List;
import java.util.stream.Stream;

import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.DotName;
Expand All @@ -12,8 +11,6 @@

public class OidcTokenPropagationCommonProcessor {

private static final DotName DEPRECATED_ACCESS_TOKEN = DotName
.createSimple(io.quarkus.oidc.token.propagation.AccessToken.class.getName());
private static final DotName ACCESS_TOKEN = DotName.createSimple(AccessToken.class.getName());

@BuildStep
Expand All @@ -34,9 +31,7 @@ private AccessTokenInstanceBuildItem build() {
}
}
var accessTokenAnnotations = index.getIndex().getAnnotations(ACCESS_TOKEN);
var accessTokenDeprecatedAnnotations = index.getIndex().getAnnotations(DEPRECATED_ACCESS_TOKEN);
return Stream.concat(accessTokenAnnotations.stream(), accessTokenDeprecatedAnnotations.stream())
.map(ItemBuilder::new).map(ItemBuilder::build).toList();
return accessTokenAnnotations.stream().map(ItemBuilder::new).map(ItemBuilder::build).toList();
}

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public interface DefaultClientEnabledExchange {
}

@RegisterRestClient(baseUri = "http://localhost:8081/protected")
@io.quarkus.oidc.token.propagation.AccessToken(exchangeTokenClient = "named")
@AccessToken(exchangeTokenClient = "named")
@Path("/")
public interface NamedClientDefaultExchange {
@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public interface DefaultClientDefaultExchange {
}

@RegisterRestClient(baseUri = "http://localhost:8081/protected")
@io.quarkus.oidc.token.propagation.AccessToken(exchangeTokenClient = "Default")
@AccessToken(exchangeTokenClient = "Default")
@Path("/")
public interface DefaultClientEnabledExchange {
@GET
Expand Down
Loading