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(jans-auth-server): add ability to return error out of introspection and update_token custom script #3255

Closed
2 tasks
yuriyz opened this issue Dec 7, 2022 · 1 comment · Fixed by #3356
Closed
2 tasks
Assignees
Labels
comp-jans-auth-server Component affected by issue or PR kind-feature Issue or PR is a new feature request
Milestone

Comments

@yuriyz
Copy link
Contributor

yuriyz commented Dec 7, 2022

Description

feat(jans-auth-server): add ability to return error out of introspection and update_token custom script

oxauth ticket: GluuFederation/oxAuth#1760
Support: 10998

Test cases and code coverage

  • Write unit test to cover added/changed code
  • Update documentation
@yuriyz yuriyz added comp-jans-auth-server Component affected by issue or PR kind-feature Issue or PR is a new feature request labels Dec 7, 2022
@yuriyz yuriyz added this to the 1.0.6 milestone Dec 7, 2022
@yuriyz yuriyz self-assigned this Dec 7, 2022
yuriyz added a commit that referenced this issue Dec 19, 2022
yuriyz added a commit that referenced this issue Dec 19, 2022
@yuriyz
Copy link
Contributor Author

yuriyz commented Dec 19, 2022

Fixed in #3356

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>'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-jans-auth-server Component affected by issue or PR kind-feature Issue or PR is a new feature request
Projects
None yet
1 participant