-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Token not propagating to microservices with OpenIddict and ABP Framework (worked with IdentityServer4 #22055
Comments
hi
Can you share a
Add a breakpoint to check the request, make sure the token is attached to the request and check the JWT authentication logs( https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems |
The issue is actually that the token is not being sent at all with the request from Auth Server to the microservice. When debugging the request in the microservice:
But the ABP HTTP client is not automatically attaching the token to outgoing requests, which worked previously with IdentityServer4. Auth server log
Api logs
|
hi Can you upload your code to the GitHub repo? |
We are using ABP Framework version 9.0.4 with OpenIddict for authentication. Our Auth Server needs to communicate with microservices, but we're experiencing issues with token propagation.
Configuration in appsettings.json:
Issue:
When making requests from the Auth Server to microservices (like Storage API), the token is generated successfully but ICurrentUser properties are all null in the microservice. This same configuration worked perfectly when we were using IdentityServer4.
Our setup:
Auth Server using OpenIddict
Multiple microservices
Using ABP's built-in HTTP client configuration
Client credentials flow for service-to-service communication
The token is being generated (we can see it in logs), but it seems the claims are not being properly propagated or processed.
What we've tried:
Confirmed token generation is successful
Verified all scopes are properly registered
Checked the client configuration
How can we make this work similar to how it worked with IdentityServer4? Is there a different approach we should take with OpenIddict in ABP Framework?
@maliming
The text was updated successfully, but these errors were encountered: