
I've added Blazored SessionStorage as a dependency to the project. However, I'd love to get some clarifications from someone, specifically on IUserStore stuff. To be clear: I already know how to get info from Telegram and check the hash, let's assume after executing some code on a page I already have some User model with some filled out fields All I want to do after that is put that model into app's context, I'm not even sure I plan on storing the cookie for the user. Here's my question: how do I just put the user's data (after checking the info from Telegram) into app's context, without storing anything in the database? Or if I'm forced to, where do I change the database scheme? Maybe I don't even need to use the Identity framework for this? All I want is for all the pages to have the info about the user, and the authentication happens on Telegram's side, I just get all the info in response and check the hash with my private key. Inevitable, this line appears in all of the samples: services.AddEntityFrameworkStores()
I have no plans to add login/password authentication and I therefore don't see any reason to use the database to store anything login-related other than the Telegram User ID.Īll of the samples imply using the login-password model along with the database, somewhat like this: services.AddDefaultIdentity(options => = true) I want to add the ability for the user to login using Telegram Login Widget.
I am making a Blazor Server app, which is tied to my Telegram bot.