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

Compatibility with oAuth2 #46

Closed
06chaynes opened this issue Jun 15, 2016 · 2 comments
Closed

Compatibility with oAuth2 #46

06chaynes opened this issue Jun 15, 2016 · 2 comments

Comments

@06chaynes
Copy link

I am using the package oauth2-server-laravel for authenticating users. I was wondering if you could help point me in the right direction to modify this package to get the user ID when using this solution.

It appears that I need to replace the bit of code in ActivitylogSupervisor.php __contruct method that deals with the Illuminate Auth\Guard contract but I am unsure of what those changes might be at this time. Any help at all would be greatly appreciated as this package provides all I need withholding this one critical piece.

@06chaynes
Copy link
Author

06chaynes commented Jun 15, 2016

After some digging I found that I could override the $userId variable in the log method to get this working:

    $userId = (int) Authorizer::getResourceOwnerId();

This may not be the best fix but it seems to be working properly in my tests so far.

@freekmurze
Copy link
Member

Hi, this package has been abandoned. Please use laravel-activitylog instead.

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