Creating a webserver in C#, but use Firebase Authentication [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
We have developed a web service application using WebAPI C#. We want to change our authentication method to Firebase. So our client applications could log in using Firebase authentication, then with that authentication have access to our C# web service.
Are there any libraries developed for this method? I have seen libraries, but they are meant to be used in a c# client application, not in a server-side application.

This is in fact a well supported scenario. After the user signs in to Firebase Authentication on the client, you'll want to pass their ID token to your web service over a secure connection. Your server can then decode and verify the ID token, and use the information in there to grant the user access to information they're authorized to.
This flow is also described in the Firebase documentation on verifying an ID token, so I recommend checking that out.

Related

How to post a twit using C# with username and password? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I used tweetsharp API to post a twit using access token it is working fine. Now I need to implement with username and password to post the twit. Is it possible to post a twit using username and password?.
If yes which API is good option to twit using user credentials?
Thanks in advance
The Twitter API requires that you use OAuth (an authenticated access token) to use the statuses/update endpoint. So, no, it is not possible to post a Tweet using just the username and password.

Token based authentication - Angular 2 + ASP.NET MVC/WebAPI + C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have created token in Class library using C# and created method for token generation in Web API Controller.
I don't know how to implement that token and create authentication in Angular 2 because I'm new to Angular 2.
If someone has a useful example or link feel free to put it in comments.
Thanks!
Basic flow is this:
User enters valid credentials to auth server (could be even facebook or google)
Server returns some token with an expiry date and info (e.g. userid, scopes, etc.)
Client makes requests to your api/server with that token usually in the header
Your application validates the token is valid, i.e. not expired, or you can also make a call to the issuing server to make sure it's valid and get more info about the user
If it's valid proceed with the flow, else force user to log in again, going back to step 1.
As you can see most of the logic is actually on the server, not sure what is the issue with the angularjs. May be you can have logic in the angularjs routing that anytime the server returns 403 you re-route to login page.

SAML 2.0 with C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have done so many googling on SAML 2.0 usage with C#, but not found any understandable link. So hope someone can help on this
1) How the SSO is working - A diagram on calls
2) I'm using ping federated. So what will be the working flow of that? Got 0% idea with their documentation
3) Do I need to write any code to embed SSO with ping federated? If so is that regarding IDP or is it for SP?
4) How to handle SAML 2.0 requests through C#.net. What are the technologies (ex: send request : plain http redirect , receive response : http handler or a wcf service)
Use a SAML client side stack like Kentor. That has good documentation.
Your client will be the SP. Ping will be the IDP.
No, no code just Ping configuration.

Using Dropbox API with access token only [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to do silent uploads, without the need of authorization. I've already authorized my app, I've got my access token (which Dropbox now can show it to you in it's account app settings). I just want to use some form of API to communicate with Dropbox without app secret and app key, as those already gave me access token. I've tried REST, Dropnet, SharpBox. Using C#. Any help appreciated. :)
The dropbox API documentation on file uploading is here: https://www.dropbox.com/developers/core/docs#files_put
To use the access token you have to put it in the HTTP Headers when you make the upload request, your header should include like this:
Authorization: Bearer <myToken>
Then Dropbox will auth using the token found in the header and upload the file.

Making Facebook Graph API calls from the server side [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
Can you recommend a library/SDK which allows me to quickly integrate Facebook Login (using the latest oAuth 2.0 standards adopted by facebook) with my website? I also want to access information from facebook using the GRAPH API and was wondering which is the best library/SDK for that?
The important thing here is to use the latest API by facebook and I am looking for recommendations to a C# library which makes it easy to do that?
That list on facebook's wiki is very outdated. For an API that supports all the newest facebook technologies (OAuth 2.0, Graph API, etc.) I would recommend http://facebooksdk.codeplex.com
There is a list of .NET libraries for Facebook API access listed in the Facebook Developers Wiki.
I'm most partial to the Facebook Developer Toolkit. It's pretty up to date, and if there is an API that is not directly exposed, it's fairly easy to extend the library to provide the functionality you want without having to rewrite the entire stack (instead, you can just tell it the method name and give it a collection of values, which is what most of the typed methods do).

Categories