DutchCodingCompany / filament-socialite

Add OAuth login through Laravel Socialite to Filament.
MIT License
141 stars 36 forks source link

Custom Messages in authorizeUserUsing method #107

Open javier-villatoro opened 2 weeks ago

javier-villatoro commented 2 weeks ago

I have a working SSO integration, and I would like to add functionality to inform users why they are not allowed to log in. From the authorizeUserUsing method, I can utilize Filament notifications to display specific messages to the user. However, the default user-not-allowed message continues to appear.

I would like to request the ability to customize or temporarily hide the default user-not-allowed message when I show a custom notification. The default message is still useful for other error scenarios, so I prefer not to disable it entirely.

At the moment, I don't see a way to accomplish this from the published files in my project, and I believe this feature would add more flexibility to the authorizeUserUsing method.

Thanks

dododedodonl commented 2 weeks ago

At this moment, you can publish the language files and change the message. We would accept a PR that allows for more customization of the message, or disable it entirely.