I have android and iOS mobile mobile applications where am able to use Firebase Log Events(Analytics). The same way need to add some more Event logs from backend using dotnet core. Is there way to use Firebase Log Events(Analytics) in dotnet core?
There is currently no SDK for working with Firebase analytics and .net
Now this form for Firebase analytics appears to use Google analytics GA4 which means that you could do this your self and go though the measurement protocol for GA4
Its just a HTTP Post call
POST /mp/collect HTTP/1.1
HOST: www.google-analytics.com
Content-Type: application/json
<payload_data>
I have experience with Firebase regarding OTP verification and I achieved it by client side scripting i.e. Adding Firebase in a JS file and adding it into my razor views. So in my perspective Firebase does not provide any support for dotNet for most of its tools. You can make a way around by using JS and add it into your views. If you need to save analytics into your Db or you want to process it, make an API endpoint which will help you to achieve that.
Related
I am using the Docusign Authorization Code example (https://github.com/docusign/code-examples-csharp) to create a C# application connected to Docusign (which is already configured with our Single Sign On).
I also have another Azure App Registration to invoke my Custom API from Azure and I need to successfully get a token to invoke it.
I have successfully used MSAL javascript to invoke the custom API.
However, I am not sure if this is the safest or should i go with MSAL.NET (to do everything server side).
Anyone got ideas how to incorporate this additional MSAL.Net auth to my existing Docusign based C# code.
Thanks in advance !
I think both MSAL js, and MASL.NET are secure, but there are some limitations to what you can do with the former. If all you need is a token to invoke an API - you should be good, but Microsoft support more things that you may need the server side code for.
This article has a table that tells you all the different authentication flows Microsoft supports, and the different features each of them supports.
I just want to ask is there any possibility right now to Send Firebase In App Message without using Firebase Console? I want to send In App Message (FIAM) to Android App from .NET C# MVC Web Application. I managed to send Push Notification(FCM) succesfully but what about In App Messaging? Is there any API available for that?
There currently is no API to configure the messages delivered/displayed by Firebase In-app Messaging. If this is a use-case you'd like to see added, I recommend you file a feature request.
The closest work-around at the moment would be to use Firebase Remote Config (which does have an API for setting configuration data) to deliver some value to your clients, and then have your clients display the message on those conditions. This is somewhat similar to what Firebase's In-app Messaging does behind the scenes, although (as far as I know) it uses its own infrastructure to deliver the configuration data.
I have two web apps in azure one angular 6 the other one is .net core web api. Angular app consumes the apis to get data. Some of these apis are public apis. It means authentication is not needed for them to be called.
My questions is, what the best approaches are to protect these public apis? By protecting, I mean not letting anonymous users to call these apis and abuse data.
In my mind these are what I can do:
CORS, but the problem is postman and other rest tool still can call my apis
Using azure api management? By rate limiting? Is there a better way?
Use some sort of api key but the angular app will expose them anyway.
In my c# app I get user agent, host, Origin of the call and restrict based on those?
Basically I want to restrict anonymous user from manipulating and calling my post apis and push not relevant or duplicate data to my back-end without using any sort of AD as my apis are going to be public. I want only a few authorized app can call my apis.
Please tell me which one of the above are the right one and please recommend a better approach.
P.S: my backend is .net core 2.2,
Thanks
I can recommend below solution,
Host your APIs on Azure API app and import it to APIM. Then Configure IP restriction on API APP using the IPs of APIM. That mean, only APIM can access your API host. or you can implement client certification authentication between APIM and API host.
https://learn.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions
https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-mutual-certificates
02.Next enable subscription key/API key on APIM and keep these key on Azure key vault. So you don't need to hard code these keys on frontend. I hope you host this Angular app on Azure. (I am not Angular expert...just check online for docs)
https://learn.microsoft.com/en-us/azure/key-vault/quick-create-node
03.Later based on your scenario, If need you can apply Rate policies.
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/api-management/api-management-sample-flexible-throttling.md
There is a mobile application which is developed via Xamarin. It mainly uses Web-API services to do its job, but at some point, application calls an MVC project, which is different from the Web-API project, but under the same solution.
I set up a Basic JWT authentication for security issues between communication of mobile app and Web-API. Thus, mobile app simply sends a token in header when requesting anything from Web-API.
Authorization: Basic eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
The point where I'm stuck is how could I handle that JWT which is sent in header from mobile app to MVC. Should it be included into the URL string which is triggering MVC controller?
I have run into questions which shows how to call a remove service from MVC controller by using WebClient, but couldn't see its vice versa.
Thank you in advance!
I'm trying to determine whether it is possible to create an Api app on Azure that can be consumed via HTTP requests on mobile devices with no Azure developed SDK on the client side.(No Unity SDK available and I do not want to use a third party plugin)
I want to communicate with the API, (authenticate, pull resources, etc) with standard http messages over the www class in unity.
Before I invest a few days in this does anyone know if this is even possible?
Thanks!
It is possible with WWW or HttpWebRequest. Before you do this, try the plugin Azure here. If it's not what you want, then you can make yours from scratch.