Wrong behavior in Using JWT RBAC guide
See original GitHub issueFollowing the Using JWT RBAC guide section “finally-secured-access-to-securedroles-allowed” the expected curl result is hello + jdoe@quarkus.io, isSecure: false, authScheme: MP-JWT, hasJWT: true
but the outcome differs.
Also this warning is reported: WARN: Unrecognized configuration key "quarkus.smallrye-jwt.auth-mechanism" provided
Expected behavior
Expected authScheme: MP-JWT
and no WARN report.
Actual behavior
authScheme: BASIC
in resource report and warning about unrecognized configuration key.
To Reproduce Steps to reproduce the behavior:
- git clone https://github.com/quarkusio/quarkus-quickstarts.git
- run integratest unit test
- test pass but unexpected behavior
Configuration The one provided in quickstart
Environment (please complete the following information):
- Output of
uname -a
orver
:Linux 2018-00002 4.4.0-18362-Microsoft #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
- Output of
java -version
:openjdk version "1.8.0_222" OpenJDK Runtime Environment (Zulu 8.40.0.25-CA-linux64) (build 1.8.0_222-b10) OpenJDK 64-Bit Server VM (Zulu 8.40.0.25-CA-linux64) (build 25.222-b10, mixed mode)
- Quarkus version or git rev:
0.24.0
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Using JWT RBAC - Quarkus
This guide explains how your Quarkus application can utilize SmallRye JWT to verify JSON Web Tokens, represent them as MicroProfile JWT ...
Read more >Using JWT RBAC - Quarkus
This guide explains how your Quarkus application can utilize MicroProfile Json Web Token (JWT) Role-Based Access Control (RBAC) to provide secured access to ......
Read more >Role based JWT Tokens in ASP.NET Core APIs - Rick Strahl
Today I got stuck in one of those Groundhog Day loops looking at outdated information with JWT Tokens for a Web API with...
Read more >Eclipse MicroProfile - JWT RBAC Security (MP-JWT)
The first part of this article describes the background and motivation for the MicroProfile JWT RBAC security specification (MP-JWT). The second part of...
Read more >Enable Role-Based Access Control for APIs - Auth0
When RBAC is disabled, the default behavior is observed; an application can request any permission defined for the API, and the scope claim...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If
quarkus.smallrye-jwt.auth-mechanism
property isn’t used anymore (https://quarkus.io/guides/security-jwt#configuration-reference), should it be removed from https://quarkus.io/guides/security-jwt guide?@filippobuletto see #4648