ASP.NET Identity to a remote database using RESTful API [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm in a situation where I do not have the option to connect directly to a database (the typical ConnectionString and DBContext way), but instead, I'm forced to use a RESTful API to get and post data from, and to the database.
I difficult to explain, so here's a tiny architectural graph instead.
Easy to see, the web application can talk with the REST API, but it CANNOT connect directly to the database
PROBLEM
I'd love to use the built-in authentication system that ASP.NET Identity provides, but I'm going in completely blind. I have not been able to find any examples with REST API calls to get users, roles, etc.
I hope that some of you might be able to lend a hand. The architecture is as it is, and it's out of my hands to change it.

My team is currently using a similar system. Our solution was to use Authentication Forms, which we found easy to setup using this article. Granted it is a bit outdated, but it works for what we wanted to accomplish with a small amount of time.
Sorry, I know Its not much, but it was a very easy tutorial to follow. Feel free to ask for any more examples as you work through it!

Related

Fetch data from Google FIT API to crossplattform-App (using Xamarin,VisualStudios, C#) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I hope there is someone here who could help me:
Due to a project for the university I'm trying to implement a cross-platform app (using Xammarin&Visualstudios&C#). We want to send vitaldata (like steps, pulse, ecg, etc.) from our Smartwatches to the Google Fit App and then integrate the data from the Google Fit API into our own App. It's the first time I'm working with an API and I don't really understand how I can implement it. There are several examples on the internet and also instructions directly from Google (https://developers.google.com/fit/android/get-started), but they are not designed for Visual Studios and Xamarin. Furthermore the packages used there are not available for Xamarin.
What I have found out and implemented so far:
OAuth at the Google Console
the NuGet package is apparently called Google.Apis.Fitness.v1 (https://googleapis.dev/dotnet/Google.Apis.Fitness.v1/latest/api/Google.Apis.Fitness.v1.html)
What would be the appropriate steps to take? Do I first have to create a client and how do I do that? For example, how do I access the "steps" counter?
It would be very nice if someone could help me with the implementation.
Thanks a lot

Best practice to integrate existing MSSQL db into Umbraco? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
This is a general Umbraco architectural question, not a specific-to-the-line-of-code-question.
I am new to Umbraco but know my way around .net and asp.net mvc well.
For an upcoming project I am considering using Umbraco as a cms but as my experience with Umbraco is little, I cannot quite oversee what my options are when it comes to integrating an already existing mssql database.
The database that will support the Umbraco installation already has some tables present, containing product information. What is the best way to expose this data using the Umbraco api/models and subsequently integrate this data in Umbraco views?
E.g. can I create data models in the Umbraco admin and map those to the existing tables or is there another way that is considered to be a best practice?
Thank you.
I don't have a lot of first hand experience with this subject but I recently did an Umbraco bootcamp that covers exactly this, it's called "Umbraco Application Integration".
The course talks about Route Hijacking and contentfinders for mapping the external data into the umbraco request pipeline.
To call the external tables from you code, you can look into Umbraco's integrated lightweight orm called peta poco, but with a little work Entity Framework or nHibernate can also work.
To intergrate the external tables into you umbraco backend, there's a plugin called ui-o-matic that could help you out
Hopefully this puts you on the right track :)

Protection For Web Service - Is Https Enough? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to create a distributed application and I want to be using Web services so that I could consent with the other systems because there will be a version running on mobile and other computer and other smart hours.
But what worries me is being able to protect the application because it would be a lot of data and there will be great to adopt it.
Is HTTPS protocol enough to protect data during transmission and enough inability to eavesdrop on?
my English is poor i use google translate and not very good in that but is the better>
thx
HTTPS should suffice if the whole question circles around the transmission of data between the server and the client. If the data is EXTREMELY sensitive, implement some kind of encryption for the data itself, but in most cases, yes SSL/TLS will do the trick. I would be more worried about getting a proper authentication solution in Place to protect access in the first place.

Client - Server or web services? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
This might seem like a strange question, however it suddenly hit me that i might be doing this wrong...
So, I've been working on an application for a while, and recently we switched from open source solutions to Microsoft solutions for the backend (OS, Database, Webserver).
Now, previously I've been using standard java web services for pulling and pushing data into our DB, however the vast majority of that has now been replaced with application roles and direct DB access from our clients (This is internal, no less of a security concern)
We still have a single application that i had planned to continue the use of web services with, this simply works as a single login, patching and launch platform for our other software, a basic portal. However reading up on .net services, web api and WCF I'm suddenly struck by the sensation that perhaps web services are in fact not the way to go here.
So basically, the services perform the following functions
Taking a username/password for the client, and confirming successful
login.
Retrieving the version information for a list of installed
applications.
Changing the users password Resetting the password in the event it
was forgotten.
Now, are web services really the "best" (or more, simply a reasonable) way of providing this functionality, or would a more standard client server setup be a more reasonable way of achieving this, or perhaps i'm simply over thinking the case?
It's really difficult to say what the best way for your case is and I think it's more subjective than anything else.
That being said, while using a WCF service might be an "overkill" for something so simple. Building a server-client setup from scratch definitely sounds like an overkill. The base WCF service does a lot of the hard lifting for you with a relatively low cost and almost 0 cost in development. Unless it's becoming a performance bottleneck, I don't see why you'd switch solutions.

WCF RESTful services grounding 101 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Not sure if this is the right place for this question but if not, I'd appreciate it if anyone could suggest a better place to get an answer as I've struggled just with researching on the web as there is too much information and disinformation.
I'm designing a large scale social media website and want to get a very in depth and solid understanding and knowledge of Web API, RESTful web services (C#) and issues around performance, scalability, authentication and data protection etc in the modern web environment.
Can anyone recommend any good books/blogs/resources to start with on this?
My background is 13 years as a developer, largely .NET server side and desktop application/WPF so the web side of things is relatively new to me.
I appreciate any help or pointers in the right direction.
Theoretically, in order to understand things, I would suggest to start reading this post comparing REST and SOAP web services regarding performance, security etc. Since you are a professional, you would not need to buy a book (I guess).
Programmatically, I suppose this post would be a good starting point to see an tutorial on creating WCF REST services. This post could guide you on how to build a REST web service using the ASP.NET Web API.
Hope I helped!

Categories

Resources