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

Add more flexibility in token extractors configuration #218

Merged
merged 3 commits into from
Aug 15, 2016

Conversation

chalasr
Copy link
Collaborator

@chalasr chalasr commented Aug 15, 2016

This makes use of the useful canBeDisabled()/canBeEnabled() methods of the Config' ArrayNodeDefinition.

From userland pov, the change is not that big but adds some flexibility.

authorization_header: ~     # array('enabled' => true, 'name' => 'Authorization', 'prefix' => 'Bearer')
authorization_header: true  # array('enabled' => true, ...)
authorization_header: false # array('enabled' => false, ...)

Same for the query_parameter and cookie ones except that they are default disabled (when they are not set at all).

@chalasr chalasr merged commit 9aac361 into lexik:2.0 Aug 15, 2016
@chalasr chalasr deleted the token_extractors_config branch August 15, 2016 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant