=== lazypower|Travel is now known as lazyPower|Sprint | ||
=== Ursinha-afk is now known as Ursinha | ||
=== karni is now known as karni-lunch | ||
bookwar | hi, everyone, when we use launchpad as openid provider, for each user it produces authorization link 'https://login.launchpad.net/+id/<some_hash>' Is it possible to get this link for a particular user via certain API call? | 14:15 |
---|---|---|
=== karni-lunch is now known as karni | ||
=== wedgwood is now known as Guest78028 | ||
=== wedgwood1 is now known as wedgwood | ||
=== wedgwood is now known as Guest11202 | ||
=== charles_ is now known as charles | ||
tsimpson | bookwar: you can get it from the HTML of https://launchpad.net/~user or from the XML returned from the same URL but with the 'Accept: application/xrds+xml' header set | 15:55 |
bookwar | tsimpson: thanks, found it | 16:14 |
dobey | tsimpson, bookwar: or you can use the API for login.ubuntu.com instead | 16:35 |
dobey | http://canonical-identity-provider.readthedocs.org/en/latest/resources/account.html | 16:36 |
dobey | hrmm, that page only documents how to create a new account | 16:38 |
dobey | but i think if you do an OAuth-signed GET to /api/v2/accounts it will return the account info | 16:39 |
bookwar | dobey: good to know, i'll take a look | 16:43 |
dobey | the "login.launchpad.net" domain is deprecated, so you should move to using "login.ubuntu.com" anywhere you use it in your code | 16:44 |
dobey | bookwar: why do you need to get the openid url via the API anyway? | 16:58 |
bookwar | dobey: we use launchpad open-id for gerrit authentification | 16:59 |
bookwar | and i need a way to create bunch of users and setup their groups before they log in for the first time | 17:00 |
bookwar | so i am looking for a way to create gerrit user with openid authentification via script | 17:00 |
dobey | bookwar: ok. then the create method on that API should be what you need | 17:00 |
bookwar | yes, should be something like that | 17:01 |
=== Ursinha is now known as Ursinha-afk | ||
=== bigjools_ is now known as bigjools |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!