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?
5 Replies
awcodes
awcodes10mo ago
Is this happening on production? Or locally?
Markwowz
Markwowz10mo ago
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
Markwowz
Markwowz10mo ago
Thanks for the quick replies, this looks like exactly what im missing. Let me add this and I'll report bsck shortly
Markwowz
Markwowz10mo ago
That was it! Thanks for your help!