Guides
Add password login
Enable hosted password authentication for an owned web app.
You'll learn how to register SqlOS, seed an owned client, and sign in through the hosted login UI.
DbContext implementing ISqlOSAuthServerDbContextUsers sign in at /sqlos/auth/login with email and password. Your app uses the OAuth authorization code flow with PKCE.
builder.AddSqlOS<AppDbContext>(options =>
{
options.AuthServer.SeedOwnedWebApp(
"web",
"My App",
"https://localhost:5001/auth/callback");
options.AuthServer.SeedAuthPage(page =>
{
page.PageTitle = "Sign in";
page.EnablePasswordSignup = true;
});
});Build():app.MapSqlOS();Start the app and open /sqlos/auth/authorize with your client id, redirect URI, and PKCE challenge (the Todo sample shows a full flow).
Verify: complete login and confirm your app receives tokens at the callback URL.
/authorize and /token endpoints respond on your origin/sqlos/admin/auth/