-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
OIDC slows down application startup time in native mode #15831
Comments
/cc @pedroigor, @sberyozkin |
@igor-dmitriev Can you please experiment with Quarkus |
@igor-dmitriev Also, if the Auth0 bearer token in this case is in JWT format then you can try:
and if it is an opaque/binary token then:
it will save on |
@sberyozkin thanks for the update, I will try it out |
@sberyozkin so, I tried it out,
regarding the discovery, it works a little bit better when discovery is disabled:
now it's |
@igor-dmitriev I believe for |
@igor-dmitriev if |
@sberyozkin got it, thanks for the update, looking forward to it, having startup time ~= 200ms for Java-based application is fantastic. |
@igor-dmitriev I've been thinking about this issue - so there is no need to introduce a property to delay Instead of
you can do
and register a custom TenantContextResolver bean where you'd do:
Can you give it a try please. |
Hi @sberyozkin , it is not working, cause it is required to provide auth-server-url and client-id, otherwise it fails with an error:
when I added them and added a custom TenantContextResolver as well, it does not give any positive effect, unfortunately
application.properties
|
I only proto-typed the code, so indeed setting client-id was also expected. With this resolver, Please experiment further |
By the way |
@sberyozkin yes, I tried it with |
@sberyozkin I tried your proposal with |
Description
We are using Quarkus with GraalVM native-image which is deployed to AWS Lambda, we noticed significant performance loss when we added
io.quarkus:quarkus-oidc
dependency.It is needed to have Auth0 integration.
quarkusPlatformVersion=1.12.2.Final
application.properties
This is how it works without oidc:
as you may see start-up time is 0.2 seconds
and this is how it works with oidc:
We tested it multiple times
+0.5 seconds in average
Implementation ideas
The text was updated successfully, but these errors were encountered: