stormpath / stormpath-lumen

Build simple, secure web applications with Stormpath and Lumen
Other
10 stars 1 forks source link

StormpathServiceProvider does not add provider as part of accountStoresArray #4

Closed JunkMyFunk closed 8 years ago

JunkMyFunk commented 8 years ago

LoginController and RegisterController return an array of accountStores which only includes the account store name and href properties and does not include the provider property with the provider href and providerId.

This issue seems to have been introduced here as the Stormpath\Resource\Provider class which is set to $mapping->accountStore uses a property object and magic methods to store property values, which does not make values accessible to isset(), so this will always evaluate to false.

bretterer commented 8 years ago

@JunkMyFunk Thanks for mentioning this. I will push a bugfix ASAP

Brian

bretterer commented 8 years ago

@JunkMyFunk Justed wanted to touch base with you to make sure you see the updates that were made. The register and login get requests now provide the account stores with provider object

-Brian