Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 1299  / 3 Years ago, sun, august 8, 2021, 4:11:55

I'm working on a web app that includes a file export to Dropbox and Skydrive and i wanted to add UbuntuOne, too. That means i need access to files and if i understand the U1 API docs correctly the only oauth token with access to files is full access token:



https://one.ubuntu.com/developer/account_admin/issue_tokens/cloud



But requesting a full access token requires the user to type in his username and password into my app, is that correct? Or is there another way to get a request a token with access to the user's files the same way a limited access token is requested, i.e. the user doesn't have to provide his username and password to my app?


More From » ubuntu-one

 Answers
4

There is. As a web app, you may use the standard OAuth dance against Ubuntu One to obtain an OAuth token.



Use URLs https://one.ubuntu.com/oauth/request to get a token, redirect the user to https://one.ubuntu.com/oauth/authorize/?description=yourappname to have it authorized, and https://one.ubuntu.com/oauth/access/ to convert it to a real token which you can save and use to authenticate requests on the user's behalf.


[#39864] Tuesday, August 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oneeme

Total Points: 340
Total Questions: 110
Total Answers: 133

Location: Ghana
Member since Fri, Oct 21, 2022
2 Years ago
;