Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Opauth #1

Open
davidsteinsland opened this issue Aug 8, 2013 · 2 comments
Open

Opauth #1

davidsteinsland opened this issue Aug 8, 2013 · 2 comments

Comments

@davidsteinsland
Copy link

You should really try to implement your API using the original CakePHP Opauth library. Access tokens can just be set via a method, no need to use sessions for that.

PS! I'm using the original Opauth library, and would be glad if you didn't require your own fork ..

@LubosRemplik
Copy link
Owner

I am using Opauth library just for oAuth dance, to get access tokens. I wrote this plugin because of Models which relates to Google's api methods, For example

$uses = array('Google.GoogleDriveFiles');
...
$data = $this->GoogleDriveFiles->listItems();
debug ($data);

This is not possible with original CakePHP Opauth library, you would have to extend it. Writing additional plugins seems to be better solution for me..

@davidsteinsland
Copy link
Author

We are already storing the access tokens in database, so it would seem natural to me to just send the access token as a parameter to your models.

$data = $this->GoogleDriveFiles->listItems($accessToken);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants