zf-fr / zfr-oauth2-server

PHP library for creating an OAuth 2 server (currently proof of concept)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove routing

bakura10 opened this issue · comments

For now, ZfrOAuth2 is based on Stratigility and provides its own routing:

https://github.com/zf-fr/zfr-oauth2-server/blob/master/src/Server/AuthorizationServerMiddleware.php#L50-L52

I think that we should remove that, and the app consumer is responsible to register its own routes. Then, each action (handleToken, handleRevocation...) should have its own action middleware that only does the given task.

agreed. lets merge #38 first

done in #44