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

Question: Is it possible to hook into, or add a hook to allow for further token validation #1766

Open
DizzyDeveloper opened this issue Dec 5, 2024 · 1 comment
Labels
question Further information is requested

Comments

@DizzyDeveloper
Copy link

I have a scenario where I need to validate the audience claim on the id token, is there away to add in a hook, or one be made available so that one could add additional token validation during on of the ResponseValidator steps?
i.e. say add a event that could get execute in the _validateIdTokenAttributes function, so that I could do an additional validation check there?

@pamapa pamapa added the question Further information is requested label Dec 10, 2024
@pamapa
Copy link
Member

pamapa commented Dec 10, 2024

Currently that is not possible. You would need to provide a MR to add such a functionality. Also i am not so sure that this would be the correct location. Your validation the audience claims seems very user specific. Why do you not make the validation in a post process after you have received an access token?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants