From 0e9a47c52be6a2e1f72d8866c1fea56ac8813a1f Mon Sep 17 00:00:00 2001 From: Sergey Beryozkin Date: Mon, 18 Sep 2023 10:11:01 +0100 Subject: [PATCH] Update extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java Co-authored-by: George Gastaldi --- .../java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java index dd8615c4e56b5..c9a66cf76f5d9 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/OidcJsonWebTokenProducer.java @@ -80,7 +80,7 @@ private JsonWebToken getTokenCredential(Class type) { } String tokenType = type == AccessTokenCredential.class ? "access" : "ID"; LOG.warnf( - "Identity is not associated with an %s token. Access 'JsonWebToken' with '@IdToken' qualifier if ID token is required and 'JsonWebToken' without this qualifier when JWT access token is required. Inject either 'quarkus.security.identity.SecurityIdentity' or 'quarkus.oidc.UserInfo' if you need to have the same endpoint code working for both authorization code and bearer token authentication flows.", + "Identity is not associated with an %s token. Access 'JsonWebToken' with '@IdToken' qualifier if ID token is required and 'JsonWebToken' without this qualifier when JWT access token is required. Inject either 'io.quarkus.security.identity.SecurityIdentity' or 'io.quarkus.oidc.UserInfo' if you need to have the same endpoint code working for both authorization code and bearer token authentication flows.", tokenType); return new NullJsonWebToken(); }