Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #381 Allow null as redirect_route (toooni)
This PR was merged into the master branch. Discussion ---------- Allow null as redirect_route The functionality “Fetching access keys via OAuth2 to be used with an API” mentioned in the README does not necessarily need a `redirect_url`, thus providing it should not be mandatory. We have an Endpoint (pingen.com) which does not allow `redirect_url` to be sent in these cases. Also, it wouldn't make much sense if it did because the route must be a valid symfony route, which in some cases must be created without a use. I also think it makes sense to allow `null` here because this parameter isn't mandatory in the `League\OAuth2\Client\ProviderAbstractProvider` (https://github.com/thephpleague/oauth2-client/blob/master/src/Provider/AbstractProvider.php#L454). Commits ------- cb50093 Allow null as redirect_route
- Loading branch information