sfOauthServerPlugin icon indicating copy to clipboard operation
sfOauthServerPlugin copied to clipboard

symfony bypasses your filter

Open arrebucio opened this issue 14 years ago • 3 comments

Hi. I have a working project with symfony 1.4.1. I installed your plugin, created a new app/module and in the default action, I print a 'Hello world!'. The plugin was activated and I've put the oauth.yml file in the config folder inside the module directory. In the browser I can see the 'hello world!' message. It's seems that the filter is bypassed completely. What's wrong?

arrebucio avatar Dec 07 '11 12:12 arrebucio

I found a temporally solution.

In the filters.yml of the module you want to secure in your application you can add a oauth_filter:

----- Start of filters.yml ----- rendering: ~

oauth_filter: class: sfOauthFilter

security: ~

cache: ~ execution: ~ ----- End of filters.yml -----

But I would have a working oauth.yml file. If someone founds a solution, please post it!. May be I'm missing some step in the README file.

enricleon avatar Dec 15 '11 16:12 enricleon

Thank you. now It's working.

arrebucio avatar Dec 15 '11 17:12 arrebucio

I am really sorry, I did find a time for answer to you. Yes nothingbuttumblewees, I forgive to precise that you have to add the filter in the oauth app

In my project my filters.yml in my oauth app folder :

rendering: ~ oauth: class: sfOauthFilter param: type: oauth security: ~ cache: ~ execution: ~

I did not remember why I added a type.

Moreover I no longer work on the project using this plugin so I do not have time for improve it

jbcayrou avatar Dec 26 '11 10:12 jbcayrou