-
-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New tenant registration + Passport #62
Comments
Hi @dambridge, it's logic dependent. If you have a separated users logic tenant by tenant, I can suggest to call If your users logic is included in your landlord, it isn't needed. |
@masterix21 In my registration handler, I'm basically going to do this then:
|
Yes, it seems ok What are your concerns? PS: why don't you use: |
Per #23 , there are issues I had running Artisan directly. Also, I just tried it but the Passport tables were still installed in the landlord database. |
Have you moved the passport migrations inside the tenant directory? |
Yes. Well, the default migrations folder is the tenant directory, so that's where they are. Must be using the wrong connection somehow, but the other migrate command runs just fine. My Task:
|
Ah, hold up. This is the culprit methinks (in the default Passport migrations):
|
Change it: with: It's really important to specify the connection. |
I published the Passport config and set the connection to 'tenant', migrations ran properly. However, NOW I'm getting an error when trying to create a token for the user:
when trying
|
Oh God. Nothing to see here. Forgot to import classes. Thanks @masterix21 . |
As discussed in #29 I have likely a simple question. When registering a new tenant, should we be calling
php artisan passport:install
each time to generate keys and clients as part of the initilization?The text was updated successfully, but these errors were encountered: