A3M - Account Authentication & Authorization Module |
[eluser]Peng Kong[/eluser]
ok here's a little help on how to use the oauth part of a3m. 1) First what you need to do is go to https://localhost/a3m/oauth/apps and register a new app ok that's it! ... for the server part =p 2) Now, to test that our server is working i've got a controller to simulate the oauth consumer. Open a3m\system\application\modules\oauth\controllers\consumer.php and replace $key and $secret with the one you get from your newly register app. 3) Visit the url http://localhost/a3m/oauth/consumer/save . this "saves" the oauth consumer details in the oauth consumer (of cuz in our case it's all in the same db) 4) Great! now just visit http://localhost/a3m/oauth/consumer/obta...uest_token and you should see "Hooray! you're authenticated as user id..." after you authenticate and authorize. I've yet to do a page where the resource owner can revoke access after giving it out. that i will do after ACL is done. |
Welcome Guest, Not a member yet? Register Sign In |