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 6f3572b commit d8f21dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -159,9 +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. 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_** need `securityHandlers`. They are most useful for OpenID and OAuth2 scenario, but are not required.

**Note:** Most use cases, **_do not_** require security handlers. They are most useful for OpenID and OAuth2 scenario, but are not required.
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.

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 d8f21dc

Please sign in to comment.