Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication with bearer token #188

Open
Demmtop opened this issue Apr 13, 2023 · 7 comments
Open

Authentication with bearer token #188

Demmtop opened this issue Apr 13, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@Demmtop
Copy link

Demmtop commented Apr 13, 2023

My Rest service uses a bearer token for authentication. And in the Swagger UI I see the authentication button. Now I have included logging manager also in Swagger UI, but it is not showing any authentication button. Then when I make a rest call, I get the message "Authorization header was null".
How can I configure the Logging Manager via the application.properties so that it also takes the Bearer Token?

@Demmtop
Copy link
Author

Demmtop commented Apr 14, 2023

Hi Philip,
the links help me not really. I added following to the application.properties
quarkus.http.auth.permission.bearer.paths=/q/logging-manager quarkus.http.auth.permission.bearer.policy=authenticated quarkus.http.auth.permission.bearer.auth-mechanism=bearer

I have the same effect. No authentication button in the Swagger UI.
swagger

@phillip-kruger
Copy link
Member

I wonder if this is not a OpenApi issue, can you share a reproducer?

@Demmtop
Copy link
Author

Demmtop commented Apr 14, 2023

Hi Philip,
here a simple version of my rest service.
And now I a have a problem. When I add the part in the applications.properties the server is not starting.
When I delete the part than the server is starting and the logging-mananger rest call's doesn't need authentication.
I don't know why my big rest service is running with the part in the application.properties.
Smtp-Value-Rest.tar.gz

@Demmtop
Copy link
Author

Demmtop commented Apr 14, 2023

I have a solution for my starting problem. I added
<dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-security</artifactId> </dependency>
Then i get a 403 Forrbidden exception for the logging-manager call's.

@phillip-kruger
Copy link
Member

Just to double check. Do you still have an issue or are you solved ?

@Demmtop
Copy link
Author

Demmtop commented May 4, 2023

I still have this issue. No auth button for type the bearer token.

@melloware melloware added the bug Something isn't working label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants