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

Limit DB queries to fetch Action in every token call when no Action is configured #23188

Open
ashanthamara opened this issue Feb 20, 2025 · 0 comments

Comments

@ashanthamara
Copy link
Contributor

Current Limitation

Currently, in every token, if the token grant type is equals to client_credentials, password, authorization_code or refresh_token, it will proceed for action execution.
Before the action execution, first it fetches the action from the DB. If there is an action is configured, that value will be added to cache.
But if action is not configured, the system will have to perform DB queries in every token call to fetch the action.

This will be an additional overhead for the organisations which are not configured actions.

Suggested Improvement

We should find a way to limit DB queries when no action is configured.
Ideally we may need to have a cache in the action execution service and need to invalidate the cache, when an action is added/updated or deleted.

Version

7.1.0

@ashanthamara ashanthamara changed the title Limit DB querying to fetch Action in token calls when no Action is configured Limit DB queries to fetch Action in every token call when no Action is configured Feb 20, 2025
@ashanthamara ashanthamara added Team/Identity Server Core and removed identity-core Identity runtime and core development labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant