Skip to content

Conversation

@horstenwillem
Copy link
Contributor

  • add validator function for config

@@ -0,0 +1,49 @@
const Joi = require('joi');

const configSchema = Joi.object({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vademo Please validate if Joi schema is correct 🙏

Copy link
Collaborator

@vademo vademo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@horstenwillem Good job thank you.
1 small remark to keep compatibility.

cache: Joi.boolean().optional(),
tokenLocation: Joi.string().optional(),
source: Joi.string()
.valid('authzv2', 'meauthzv2', 'externalAuthz')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For backwards compatibility we also have meauthz which is an alias for meauthzv2 (not documented as it might be removed in the future).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants