Create Api with .Net core using Firebase realtimeDatabase - firebase

Can anyone tell me, how can i create .net core web api using Firebase database. I couldn't find any documents or tutorials related to that, i can see some tutorials for .net mvc project with firebase
I want to create api with .net core using firebase database.

Related

Migrating from OWIN .NET Framework to OpenIddict .NET Core

I have an existing .NET Framework Web API currently in production which is in the process of being upgraded to .NET 6.
The application uses the built-in .NET Framework OWIN solution for generating tokens and handles the authorisation for the client_credential flow.
We have a couple of custom MySql tables that hold the ClientId, ClientSecret info and another for granted token requests, e.g. storing the OWIN ticket, scope details etc.
One limitation we have is that we are using EF Core 3.1.x which we cannot upgrade.
I want to build a solution so that:
existing active OWIN tokens in the database can still be used for
authorisation into the new .NET Core API using OpenIddict, once it goes live. (so
that the end users are not impacted)
I also want to be able to generate new tokens using OpenIddict and
store those tokens in the same existing MySql tables.
I don't know if this is possible and if so how to tackle it.
Has anyone here achieved a similar migration?

Store user accounts in-app for ASP.NET core 3.1 API template

I'm trying to build an API project for ASP.NET Core with individual user accounts but the only option is to Connect to an existing user store in the cloud.
Is there a way to create an asp.net core api project via template just like its asp.net web application (.net framework) counterpart, which has classes like Account controllers, viewmodels and models.
There are many ways to solve this but typically you'd use ASP.NET Identity, there are many getting started guides online, I'd advise you to start here

Is it possible to connect the database created in asp.net core mvc using the EF (Entity Framework) Core to Azure cloud for further integration

I'm currently working on an Asp.net Core 2.1 MVC application. I would like to create the database using EF Core ( Entity Framework ). And I want to connect that database to Microsoft Azure cloud. And I heard that it's not possible or not that easy to connect the database, which is created using Entity Framework Core, to Azure cloud. Hence I had to create a JSON file instead. But I want to create a database using EF core and I want to know whether I will be able to connect it to Azure.

How to Create New Project in FireBase using .net Mvc

I want to create a new project in Firebase and create new android App and download there google-service.json file. Everything Using programmatically. I tried to login with third party credentials after that what to do understand.
Can this happens?
Firebase has a REST API for creating and managing projects. Since it's REST based, it can be called from any platform that can make HTTP calls (including .NET).
For more information on this API, see the documentation for the Firebase Management API.

No Individual User Accounts auth option in ASP.NET Core Web API template

I am a bit confused as to why there is no Individual User Accounts authentication option in the latest ASP.NET Core Web API template.
Is it still possible to implement individual user accounts the way that the MVC template does or would it not make sense?
Let's say I am creating a stand-alone web API that is going to have all of my business logic and data layer that accesses the database which has the AspNet Identity tables. I plan on making calls to this API w/ an MVC app.
I know one way of doing this is to create an asp.net MVC app w/ individual user accounts auth and simply build the API right within the MVC app using a controllers/api folder. However, I don't want to do it this way because I want the API to be its own standalone project that can be hosted on a completely different server and accessed by multiple applications, not just an MVC app.
Can someone lead me in the right direction on how authentication typically works in this scenario since there is no template?
Individual User Accounts authentication option for the ASP.NET Core Web API is available in .NET Core 2.0 Preview 1.
Unfortunately .NET Core 2.0 Preview 1 isn't available in VS 2017 release.
But you can install Visual Studio 2017 Preview (you can use it side-by-side with VS 2017 stable version) :
I think you can use IdentityServer4 which allows implementing single sign-on and access control for ASP .NET Core Web APIs using protocols like OpenID Connect and OAuth2. It offers integration with ASP.NET Core Identity and Entity Framework Core.
You will need to install to the following nuget package:
Install-Package IdentityServer4
and add the IdentityServer middleware to the HTTP pipeline:
app.UseIdentityServer();
You can find several quick start samples here or follow this article.

Resources