The CreateAuthInfo returns an object that is populated with the correct values. This is what is registered.
container.Register<IDbConnectionFactory>(
new OrmLiteConnectionFactory(
connectionString,
SqlServer2016Dialect.Provider
)
);
Plugins.Add(new AuthFeature(() => new AuthUserSession(),
new IAuthProvider[] {
new CredentialsAuthProvider(),
// new JwtAuthProvider(),
new SomethingOAuthProvider(AppSettings) {
AuthorizeUrl = "http://something.com/oauth/authorize/",
RedirectUrl = "https://localhost:44319/auth/something",
ConsumerKey = "key",
ConsumerSecret = "secret",
//RequestTokenUrl = "http://something.com/oauth/token/",
AccessTokenUrl = "http://something.com/oauth/token/",
UserProfileUrl = "http://something.com/oauth/me/"
},
})
);
//Store User Data into the referenced SqlServer database
container.Register<IAuthRepository>(c =>
new OrmLiteAuthRepository(c.Resolve<IDbConnectionFactory>()));