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

feat(oxauth): add ability to return error out of introspection and update_token custom script #1760

Closed
yuriyz opened this issue Dec 7, 2022 · 3 comments
Assignees
Labels
new feature adding new functionality, or extending existing functionality
Milestone

Comments

@yuriyz
Copy link
Contributor

yuriyz commented Dec 7, 2022

Describe the issue

feat(oxauth): add ability to return error out of introspection and update_token custom script

Support: 10998

@yuriyz
Copy link
Contributor Author

yuriyz commented Dec 16, 2022

Fixed in #1765

To return error custom script must set WebApplicationException into context (for both introspection and update token script).

Example:

context.setWebApplicationException(context.createWebApplicationException(400, '<custom error here as string>'))

@yuriyz
Copy link
Contributor Author

yuriyz commented Feb 27, 2023

"Update Token" script does not provide ability to return error

@yuriyz
Copy link
Contributor Author

yuriyz commented Feb 28, 2023

Fixed in #1785

@yuriyz yuriyz closed this as completed Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature adding new functionality, or extending existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant