logical-and / php-oauth

Support for authenticating users (without dep from any framework) using both OAuth1 and OAuth2 methods
https://packagist.org/packages/and/oauth
MIT License
43 stars 13 forks source link

How to create a custom service #34

Closed sisuwayn closed 9 years ago

sisuwayn commented 9 years ago

Hi, I have a custom oauth 1 service that is not listed in the service folder. I can clone an existing service to get it working but were would I put this file and how do I reference it?

e.g I can't leave it in the vendor folder since componser will override the directory if I update the library.

sisuwayn commented 9 years ago

actually just worked it out. Registered the new service and it's all good

logical-and commented 9 years ago

Yeah, you just need to create and register new service using ServiceFactory::registerService() method