Google OAuth - UserAuth.Permissions

Hello mythz!

I try to use GoogleAuthProvider for authenticate. I defined RedirectUrl, CallbackUrl, ConsumerKey, ConsumerSecret in the appsettings.json file. After the user logged in, a new record created in the UserAuth table. We use UserAuth permissions with the RequiredPermission attribute. How can I set the UserAuth permissions for the user who register with Google OAuth?


Find the User in the UserAuth table and populate its Roles/Permissions directly, e.g. using OrmLite UpdateOnly APIs.

Or populate the Roles/Permissions properties the GetUserAuth() and SaveUserAuth() APIs on your Auth Repository.

1 Like