Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Oct 14, 2019
1 parent 8b40689 commit 6f3572b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -159,7 +159,9 @@ Determines whether the validator should coerce value types to match the type def

### securityHandlers (optional)

Specifies a set of custom security handlers to be used to validate security scenarios. If a `securityHandlers` object is specified, a handler must be defined for **_all_** securities. If `securityHandlers are **_not_** specified, a default handler is always used. The default handler will validate against the OpenAPI spec, then call the next middleware.
Specifies a set of custom security handlers to be used to validate security. If a `securityHandlers` object is specified, a handler must be defined for **_all_** securities. If `securityHandlers are **_not_** specified, a default handler is always used. The default handler will validate against the OpenAPI spec, then call the next middleware.

**Note:** Most use cases, **_do not_** require security handlers. They are most useful for OpenID and OAuth2 scenario, but are not required.

If `securityHandlers` are specified, the validator will validate against the OpenAPI spec, then call the security handler providing it the Express request, the security scopes, and the security schema object.

Expand Down

0 comments on commit 6f3572b

Please sign in to comment.