Using Dropbox API with access token only [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 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.

Related

Creating a webserver in C#, but use Firebase Authentication [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 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.

Office 365 Public Calendar example [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 need to create a public calendar on Office 365 and show its events on a website using c#/Microsoft Graph API. The only examples I've found so far talk about mailbox/calendar access for a normal/authenticated user.
https://learn.microsoft.com/en-us/outlook/rest/dotnet-tutorial
Is OAuth required for this scenario? If not, how to access the calendar programmatically using just username/password of a service account?
All calls to Microsoft Graph require a valid access token (i.e. OAuth).

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.

Categories