I have configured Oauth with Microsoft. It is working fine. But how do I setup a default user role for Socialite login? It is on none role when you first login to Libresnm.
I have setup a new key default_role global-read which is not working.
I also run the command lnms config:set auth.socialite.default_role global-read in a new + provider, now it is showing the command as a new provider, how do i remove lnms config:set auth.socialite.default_role global-read? It is showing another green hyper link on the login page now. Please helpâŚ
You could post the output of lnms config:get auth.socialite
with sensitive things removed which might show what the issue with the âextra providerâ is
I am going to update the config_value, can you plz confirm the query with me? Do I need a quotation mark likes config_value = âvaluesâ or none quotation mark, like this at below?
UPDATE config SET config_value = {âmicrosoftâ:{âclient_idâ:â123456789â,âclient_secretâ:â123456789â,âtenantâ:â123456789â,âlistenerâ:â\SocialiteProviders\Microsoft\MicrosoftExtendSocialiteâ}} WHERE config_name = 'âauth.socialite.configsâ;
then re-enter your settings as per the notes/instructions used when setting it up
But yes you can do the update you would need single quotes around the value ie
UPDATE config SET config_value = '{âmicrosoftâ:{âclient_idâ:â123456789â,âclient_secretâ:â123456789â,âtenantâ:â123456789â,âlistenerâ:â\SocialiteProviders\Microsoft\MicrosoftExtendSocialiteâ}}' WHERE config_name = 'auth.socialite.configs';