Skip to content

Conversation

@etelford
Copy link
Contributor

This replaces the usage of using the Database Connection in favor of TokenRepository which then calls Token directly.

A big benefit of this is so that Model events can be observed when creating Access Tokens.

I believe this would cover at least part of Issue #77.

@mlanin
Copy link

mlanin commented Oct 14, 2016

@taylorotwell when it will be merged in release? This PR could help a LOT in using Passport with mongodb.

@taylorotwell
Copy link
Member

It's already been released.

@mlanin
Copy link

mlanin commented Oct 15, 2016

@taylorotwell I mean do you plan to merge it in 1.0 version? Because now it's only available in dev-master build.

@livingos
Copy link
Contributor

Please don't. Master branch breaks scope functionality - see #148

You need an Auth Code Repository too with scopes cast to/from array and then to change FormatScopesForStorage not to encode the scopes. Or just remove cast from AccessToken eloquent model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants