Using a Custom AuthUserSession with an OAuth Provider

Hi Mythz,

I can’t find anything in the docs so wanted to check if there were any examples of using a custom AuthUserSession and persisting user details to a DB using one of the OAuth Providers? If not that’s cool I can pull something together and send a PR to the docs on how to but want to check first.


Sure any additional docs would be appreciated. Here are the User Auth Repository docs and some docs showing how to mix in a DB Auth Provider.

Most .NET Core Templates are configured with Common Auth/OAuth options so generally to enable RDBMS persistence they’d only have to mix in auth-db to configure the OrmLiteAuthRepository and the RDBMS they want to configure they’re app with, e.g:

$ x mix auth-db sqlserver