SAML to Login User
Hi Folks, I am new to Filamentphp and i have to say I already love it. I converted one of our internal tools over to it and the one issue I am running into is getting the user signed in after we get the return for Okta. In our previous laravel project I was just using Auth::login($user) and it would work, but now when I do this I get redirected back to the admin dashboard and get a forbidden page. It is successfully creating the user, just doenst appear to be creating their session correctly.
Is there a different approach I should be using to login the user when it comes to Filament?
Solution:Jump to solution
Ok. Double check this on your user model. https://filamentphp.com/docs/3.x/panels/users#authorizing-access-to-the-panel
5 Replies
Is this happening on production?
Or locally?
On production
I don't currently have okta pointing to local, but I can switch it for testing. For local I'm just using a test email to sign in and out and assigning it the permissions it would get back from okta
I can also see when users are getting created in production they are getting assigned the correct roles
Solution
Ok. Double check this on your user model. https://filamentphp.com/docs/3.x/panels/users#authorizing-access-to-the-panel
Thanks for the quick replies, this looks like exactly what im missing. Let me add this and I'll report bsck shortly
That was it! Thanks for your help!