PageRenderTime 78ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 1ms

/examples/notes/OAuth on Bitbucket - Bitbucket - Atlassian Documentation.html

https://bitbucket.org/Mekk/perl-webservice_bitbucket
HTML | 2841 lines | 1838 code | 540 blank | 463 comment | 0 complexity | 5fced167422873626000e561871be622 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html class="splitter-invoked"><head>
  3. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  4. <title>OAuth on Bitbucket - Bitbucket - Atlassian Documentation</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=EDGE,chrome=IE7">
  6. <meta charset="UTF-8">
  7. <meta id="confluence-context-path" name="confluence-context-path" content="">
  8. <meta id="confluence-base-url" name="confluence-base-url" content="https://confluence.atlassian.com">
  9. <meta id="atlassian-token" name="atlassian-token" content="3ffb21dabe7a8bd19f8664af0954d2d4f3938b38">
  10. <meta id="confluence-cluster-node-id" name="confluence-cluster-node-id" value="d6e9a7d8">
  11. <meta id="confluence-space-key" name="confluence-space-key" content="BITBUCKET">
  12. <link href="https://f.monetate.net/" rel="dns-prefetch"><link href="https://sb.monetate.net/" rel="dns-prefetch"><script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/e8taqq6v.js" async="" type="text/javascript"></script><script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/ga.js" async="" type="text/javascript"></script><script async="" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/custom.js" type="text/javascript"></script><script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/intercom.js" async="" type="text/javascript"></script><script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/analytics.js" async="" id="analytics-js" type="text/javascript"></script><script type="text/javascript">
  13. var contextPath = '';
  14. </script>
  15. <meta name="confluence-request-time" content="1420384952429">
  16. <script type="text/x-template" title="create-draft">
  17. <div class="publisher-dialog">
  18. <form action="#" method="post" class="aui create-draft-dialog">
  19. <div>
  20. <label for="create-draft-title">Title</label>
  21. <input class="text" type="text" id="create-draft-title" name="title" title="Title">
  22. </div>
  23. </form>
  24. </div>
  25. </script>
  26. <script type="text/x-template" title="publisher-dialog-page1">
  27. <div class="publisher-dialog">
  28. <div class="publisher-dialog-comment">
  29. <form action="#" method="post" class="aui publish-comment-form">
  30. <div>
  31. <label for="publish-comment">Version Comment</label>
  32. <input class="text" type="text" id="publish-comment" name="publish-comment" title="Version Comment">
  33. </div>
  34. </form>
  35. </div>
  36. <div class="publisher-dialog-pages">
  37. <table class="aui">
  38. <tr>
  39. <th class="publisher-dialog-pages-title">Page Title</th>
  40. </tr>
  41. </table>
  42. </div>
  43. </div>
  44. </script>
  45. <script type="text/x-template" title="publisher-dialog-page2">
  46. <div class="publisher-dialog">
  47. <div class="publisher-dialog-progress">
  48. <div class="publisher-dialog-progress-icon"></div><span class="publisher-dialog-progress-message">Progress ...</span>
  49. </div>
  50. <div class="publisher-dialog-pages-progress">
  51. <table class="aui">
  52. <tr>
  53. <th class="publisher-dialog-pages-title">Page Title</th>
  54. <th class="publisher-dialog-pages-status">Changes in Original</th>
  55. </tr>
  56. </table>
  57. </div>
  58. </div>
  59. </script>
  60. <script type="text/x-template" title="publisher-dialog-page">
  61. <tr>
  62. <td class="publisher-dialog-pages-title"><a href="{1}" target="_blank">{0}</a></td>
  63. </tr>
  64. </script>
  65. <script type="text/x-template" title="publisher-dialog-page-progress">
  66. <tr>
  67. <td class="publisher-dialog-pages-title"><a href="{1}" target="_blank">{0}</a></td>
  68. <td class="publisher-dialog-pages-status">{2}<a href="{3}" target="_blank">{4}</a></td>
  69. </tr>
  70. </script>
  71. <meta name="ajs-is-confluence-admin" content="false">
  72. <meta name="ajs-connection-timeout" content="10000">
  73. <meta name="ajs-discovered-plugin-features" content="$discoveredList">
  74. <meta name="ajs-use-keyboard-shortcuts" content="true">
  75. <meta name="ajs-keyboardshortcut-hash" content="d938bb952da0d6da690b55512b673be3">
  76. <script type="text/x-template" title="gliffy-webpanel-footer">
  77. <div class="gliffy-webpanel-footer"><span></span></div>
  78. </script>
  79. <meta name="ajs-page-id" content="238027431">
  80. <meta name="ajs-latest-page-id" content="238027431">
  81. <meta name="ajs-content-type" content="page">
  82. <meta name="ajs-page-title" content="OAuth on Bitbucket">
  83. <meta name="ajs-parent-page-title" content="Use the Bitbucket REST APIs">
  84. <meta name="ajs-parent-page-id" content="222724129">
  85. <meta name="ajs-space-key" content="BITBUCKET">
  86. <meta name="ajs-space-name" content="Bitbucket">
  87. <meta name="ajs-from-page-title" content="">
  88. <meta name="ajs-can-remove-page" content="false">
  89. <meta name="ajs-context-path" content="">
  90. <meta name="ajs-base-url" content="https://confluence.atlassian.com">
  91. <meta name="ajs-version-number" content="5.6.4">
  92. <meta name="ajs-build-number" content="5637">
  93. <meta name="ajs-remote-user" content="">
  94. <meta name="ajs-current-user-fullname" content="">
  95. <meta name="ajs-current-user-avatar-url" content="">
  96. <meta name="ajs-static-resource-url-prefix" content="/s/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/_">
  97. <meta name="ajs-global-settings-attachment-max-size" content="146800640">
  98. <meta name="ajs-user-locale" content="en_GB">
  99. <meta name="ajs-enabled-dark-features" content="captcha-level.easy,draggable.disabled,confluence-monitoring.enable,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.page.async.PageEditedEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.blogpost.BlogPostCreateEvent,notification.plugin.api.enabled.com.atlassian.confluence.plugins.tasklist.event.SendTaskEmailEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.comment.CommentUpdateEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.comment.CommentCreateEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.page.async.PageMovedEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.follow.FollowEvent,notification.plugin.api.enabled.com.atlassian.confluence.plugins.sharepage.api.ShareContentEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.blogpost.BlogPostUpdateEvent,notification.plugin.api.enabled.com.atlassian.confluence.plugins.mentions.api.ConfluenceMentionEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.attachment.AttachmentBatchUploadCompletedEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.security.ForgotPasswordEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.page.async.PageCreatedEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.like.LikeCreatedEvent,notification.plugin.api.enabled.com.atlassian.confluence.event.events.content.blogpost.BlogPostMovedEvent">
  100. <meta name="ajs-atl-token" content="3ffb21dabe7a8bd19f8664af0954d2d4f3938b38">
  101. <meta name="ajs-confluence-flavour" content="VANILLA">
  102. <meta name="ajs-user-date-pattern" content="dd MMM yyyy">
  103. <meta name="ajs-date.format" content="MMM dd, yyyy">
  104. <link rel="shortcut icon" href="https://confluence.atlassian.com/s/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/_/favicon.ico">
  105. <link rel="icon" type="image/x-icon" href="https://confluence.atlassian.com/s/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/_/favicon.ico">
  106. <link rel="search" type="application/opensearchdescription+xml" href="https://confluence.atlassian.com/opensearch/osd.action" title="Atlassian Documentation">
  107. <script>
  108. window.WRM=window.WRM||{};window.WRM._unparsedData=window.WRM._unparsedData||{};
  109. WRM._unparsedData["com.atlassian.plugins.atlassian-plugins-webresource-plugin:context-path.context-path"]="\"\"";
  110. WRM._unparsedData["com.atlassian.confluence.plugins.confluence-license-banner:confluence-license-banner-resources.license-details"]="{\"daysBeforeLicenseExpiry\":0,\"daysBeforeMaintenanceExpiry\":0,\"showLicenseExpiryBanner\":false,\"showMaintenanceExpiryBanner\":false,\"renewUrl\":null,\"salesEmail\":null}";
  111. </script>
  112. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/batch_004.css" media="all">
  113. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/batch_002.css" media="print">
  114. <!--[if lt IE 9]>
  115. <link type="text/css" rel="stylesheet" href="/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/197494/_/download/superbatch/css/batch.css?conditionalComment=lt+IE+9" media="all">
  116. <![endif]-->
  117. <!--[if lte IE 8]>
  118. <link type="text/css" rel="stylesheet" href="/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/197494/_/download/superbatch/css/batch.css?conditionalComment=lte+IE+8" media="all">
  119. <![endif]-->
  120. <!--[if lte IE 9]>
  121. <link type="text/css" rel="stylesheet" href="/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/197494/_/download/superbatch/css/batch.css?conditionalComment=lte+IE+9" media="all">
  122. <![endif]-->
  123. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/batch.css" media="all">
  124. <!--[if lt IE 9]>
  125. <link type="text/css" rel="stylesheet" href="/s/6c0981174e94142364564819dc0d1413-CDN/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/7639feacc424ba916708d1702b96e280/_/download/contextbatch/css/atl.confluence.plugins.pagetree-desktop,main,viewcontent,atl.general,page/batch.css?conditionalComment=lt+IE+9&amp;highlightactions=true&amp;locale=en-GB&amp;flavour=VANILLA" media="all">
  126. <![endif]-->
  127. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/batch_003.css" media="all">
  128. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/org.css" media="all">
  129. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/confluence.css" media="all">
  130. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/com.css" media="all">
  131. <script type="text/javascript" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/batch_002.js"></script>
  132. <!--[if lte IE 8]>
  133. <script type="text/javascript" src="/s/6c0981174e94142364564819dc0d1413-CDN/en_GB/5637/e1ef10868e8fe2f234a1a0b171b01cde1d9717c4.27/197494/_/download/superbatch/js/batch.js?conditionalComment=lte+IE+8&amp;locale=en-GB" ></script>
  134. <![endif]-->
  135. <script type="text/javascript" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/batch.js"></script><style type="text/css"></style><style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\:form{display:block;}</style>
  136. <script type="text/javascript" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/com.js"></script>
  137. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/colors.css" media="all">
  138. <link type="text/css" rel="stylesheet" href="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/custom.css" media="all">
  139. <script type="text/javascript">
  140. // temp fix to fix find-replace
  141. var $ = AJS.$;
  142. </script>
  143. <script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/1053703113.js"></script>
  144. <script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/atl-analytics.js"></script>
  145. <script type="text/javascript">ace.analytics.Initializer.initWithPageAnalytics('9nfqb81km3');</script>
  146. <!-- Begin Monetate tag v8. -->
  147. <script type="text/javascript"> var monetateT = new Date().getTime(); (function() { var p = document.location.protocol; if (p == "http:" || p == "https:")
  148. { var m = document.createElement("script"); m.type = "text/javascript"; m.src = (p == "https:" ? "https://s" : "http://") + "e.monetate.net/js/2/a-69b737fe/p/atlassian.com/entry.js"; var e = document.createElement("div"); e.appendChild(m); document.write(e.innerHTML); }
  149. })(); </script><script src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/entry.js" type="text/javascript"></script>
  150. <!-- End Monetate tag. -->
  151. <link rel="canonical" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket">
  152. <link rel="shortlink" href="https://confluence.atlassian.com/x/pwIwDg">
  153. <meta name="wikilink" content="[BITBUCKET:OAuth on Bitbucket]">
  154. <meta name="page-version" content="43">
  155. <script async="" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/1482096478-1.js" type="text/javascript"></script></head>
  156. <body data-aui-version="5.4.4-CONFDEV-21873" onload="placeFocus()" id="com-atlassian-confluence" class="theme-documentation aui-theme-default aui-layout splitter-invoked">
  157. <div id="stp-licenseStatus-banner"></div>
  158. <div id="full-height-container">
  159. <div id="header-precursor">
  160. </div>
  161. <div style="display: none;" id="pas-announcement"><span></span><a id="more-info" target="_blank">(more info)</a><button id="dismiss-announcement" class="pas-announcement-right">✖</button><span class="pas-announcement-right"></span></div><header id="header" role="banner">
  162. <nav data-aui-responsive="true" class="aui-header aui-dropdown2-trigger-group" role="navigation"><div class="aui-header-inner"><div class="aui-header-before"><a class="aui-dropdown2-trigger app-switcher-trigger" aria-owns="app-switcher" aria-haspopup="true" tabindex="0"><span class="aui-icon aui-icon-small aui-iconfont-appswitcher">Linked Applications</span></a><div id="app-switcher" class="aui-dropdown2 aui-style-default"><div class="aui-dropdown2-section"><ul class="nav-links"><li class="nav-link"><a href="https://answers.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://answers.atlassian.com"><span class="nav-link-label">Atlassian Answers</span></a></li><li class="nav-link"><a href="https://jira.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://jira.atlassian.com"><span class="nav-link-label">Atlassian Bugs &amp; Feature Requests</span></a></li><li class="nav-link"><a href="https://developer.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://developer.atlassian.com"><span class="nav-link-label">Atlassian Developers</span></a></li><li class="nav-link"><a href="http://www.atlassian.com/resources/experts" class="aui-dropdown2-radio interactive" title="http://www.atlassian.com/resources/experts"><span class="nav-link-label">Atlassian Experts</span></a></li><li class="nav-link"><a href="https://support.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://support.atlassian.com"><span class="nav-link-label">Atlassian Support</span></a></li><li class="nav-link"><a href="https://university.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://university.atlassian.com"><span class="nav-link-label">Atlassian University</span></a></li><li class="nav-link"><a href="https://aug.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://aug.atlassian.com"><span class="nav-link-label">Atlassian User Groups</span></a></li><li class="nav-link"><a href="https://my.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://my.atlassian.com"><span class="nav-link-label">My Atlassian</span></a></li><li class="nav-link"><a href="https://ecosystem.atlassian.net/" class="aui-dropdown2-radio interactive" title="https://ecosystem.atlassian.net/"><span class="nav-link-label">Ecosystem JIRA</span></a></li><li class="nav-link nav-link-local"><a href="https://confluence.atlassian.com/" class="aui-dropdown2-radio interactive checked" title="https://confluence.atlassian.com/"><span class="nav-link-label">Atlassian Documentation</span></a></li><li class="nav-link"><a href="http://bitbucket.org/atlassian/" class="aui-dropdown2-radio interactive" title="http://bitbucket.org/atlassian/"><span class="nav-link-label">Bitbucket</span></a></li><li class="nav-link"><a href="https://answers.atlassian.com/" class="aui-dropdown2-radio interactive" title="https://answers.atlassian.com/"><span class="nav-link-label">Atlassian Answers</span></a></li></ul></div></div><script>
  163. (function (NL) {
  164. var initialise = function () {
  165. // For some milestones of AUI, the atlassian soy namespace was renamed to aui. Handle that here by ensuring that window.atlassian is defined.
  166. window.atlassian = window.atlassian || window.aui;
  167. new NL.AppSwitcher({
  168. dropdownContents: '#app-switcher'
  169. });
  170. };
  171. if (NL.AppSwitcher) {
  172. initialise();
  173. } else {
  174. NL.onInit = initialise;
  175. }
  176. }(window.NL = (window.NL || {})));
  177. window.NL.isUserAdmin = false</script></div><div class="aui-header-primary"><h1 id="logo" class="aui-header-logo aui-header-logo-custom"><a href="https://confluence.atlassian.com/"><img data-aui-responsive-header-index="0" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/confluence-logo.png" alt="Atlassian Documentation"></a></h1><ul style="width: auto;" class="aui-nav">
  178. <li>
  179. <a id="space-menu-link" class="aui-nav-link aui-dropdown2-trigger" href="#" aria-haspopup="true" aria-owns="space-menu-link-content" title="Spaces"><span class="browse">Spaces</span><span class="aui-icon-dropdown"></span></a><div id="space-menu-link-content" class="aui-dropdown2 aui-style-default aui-dropdown2-in-header" aria-hidden="false"></div>
  180. </li>
  181. <li id="browseMenu" role="menu">
  182. <a id="browse-menu-link" class="aui-nav-link aui-dropdown2-trigger" href="#" aria-haspopup="true" aria-owns="browse-menu-link-content" title="Browse">
  183. <span class="browse">Browse</span>
  184. </a>
  185. <nav id="browse-menu-link-content" class="aui-dropdown2 aui-style-default" aria-hidden="true">
  186. <div class="aui-dropdown2-section">
  187. <strong></strong>
  188. <ul id="browse-menu-link-leading" class="aui-list-truncate section-leading first">
  189. <li>
  190. <a id="space-pages-link" href="https://confluence.atlassian.com/pages/listpages.action?key=BITBUCKET" class=" " title="Browse pages in the Bitbucket space (Type 'g' then 's')">
  191. Pages
  192. </a>
  193. </li>
  194. <li>
  195. <a id="space-blogposts-link" href="https://confluence.atlassian.com/pages/viewrecentblogposts.action?key=BITBUCKET" class=" " title="Browse blogs in the Bitbucket space">
  196. Blog
  197. </a>
  198. </li>
  199. <li>
  200. <a id="space-labels-link" href="https://confluence.atlassian.com/labels/listlabels-heatmap.action?key=BITBUCKET" class=" " title="Browse labels in the Bitbucket space">
  201. Labels
  202. </a>
  203. </li>
  204. <li>
  205. <a id="space-mail-link" href="https://confluence.atlassian.com/mail/archive/viewmailarchive.action?key=BITBUCKET" class=" " title="Browse mail in the Bitbucket space">
  206. Mail
  207. </a>
  208. </li>
  209. <li>
  210. <a id="space-advanced-link" href="https://confluence.atlassian.com/spaces/viewspacesummary.action?key=BITBUCKET" class=" " title="Browse additional space functions in the Bitbucket space">
  211. Space Operations
  212. </a>
  213. </li>
  214. </ul>
  215. </div>
  216. </nav>
  217. </li>
  218. <li style="display: none;"><a id="aui-responsive-header-dropdown-trigger-0" class="aui-dropdown2-trigger" aria-owns="aui-responsive-header-dropdown-content-0" aria-haspopup="true" href="#">More<span class="icon aui-icon-dropdown"></span></a><div id="aui-responsive-header-dropdown-content-0" class="aui-dropdown2 aui-style-default"><div class="aui-dropdown2-section"><ul id="aui-responsive-header-dropdown-list-0"></ul></div></div></li></ul>
  219. </div><div class="aui-header-secondary"><ul class="aui-nav">
  220. <li>
  221. <a id="doctheme-anchor" class=" aui-nav-imagelink" title=""><div id="splitter-button" class="" title="Show or hide sidebar (Type '[')"></div></a>
  222. </li>
  223. <li>
  224. <form id="quick-search" class="aui-quicksearch dont-default-focus header-quicksearch" action="/dosearchsite.action" method="get"><fieldset><input name="where" value="BITBUCKET" type="hidden"><input name="spaceSearch" value="true" type="hidden"><label for="quick-search-query" class="assistive">Quick Search</label><input id="quick-search-query" class="text app-search search quick-search-query" accesskey="q" autocomplete="off" name="queryString" title="Quick Search (Type '/'OR 'g' then 'g')" placeholder="Search space" type="text"><input id="quick-search-submit" class="quick-search-submit" value="Search" type="submit"><div class="aui-dd-parent quick-nav-drop-down"></div></fieldset></form>
  225. </li>
  226. <li>
  227. <a id="help-menu-link" class="aui-nav-link aui-dropdown2-trigger" href="#" aria-haspopup="true" aria-owns="help-menu-link-content" title="Help">
  228. <span class="aui-icon aui-icon-small aui-iconfont-help">Help</span>
  229. </a>
  230. <nav id="help-menu-link-content" class="aui-dropdown2 aui-style-default" aria-hidden="true">
  231. <div class="aui-dropdown2-section">
  232. <strong></strong>
  233. <ul id="help-menu-link-leading" class="aui-list-truncate section-leading first">
  234. <li>
  235. <a id="confluence-help-link" href="https://docs.atlassian.com/confluence/docs-56/Getting+Help+And+Support" class="interactive" title="Visit the Confluence documentation home" target="_blank">
  236. Online Help
  237. </a>
  238. </li>
  239. <li>
  240. <a id="keyboard-shortcuts-link" href="#" class="interactive" title="View available keyboard shortcuts (Type '?')">
  241. Keyboard Shortcuts
  242. </a>
  243. </li>
  244. <li>
  245. <a id="feed-builder-link" href="https://confluence.atlassian.com/dashboard/configurerssfeed.action" class="interactive" title="Create your custom RSS feed.">
  246. Feed Builder
  247. </a>
  248. </li>
  249. <li>
  250. <a id="whats-new-menu-link" href="https://docs.atlassian.com/confluence/docs-56/whatsnew/iframe" class="interactive" title="">
  251. What’s new
  252. </a>
  253. </li>
  254. <li>
  255. <a id="gadget-directory-link" href="#" class="user-item administration-link interactive" title="Browse gadgets provided by Confluence">
  256. Available Gadgets
  257. </a>
  258. </li>
  259. <li>
  260. <a href="https://confluence.atlassian.com/spaces/com.k15t.scroll.platform/spaceadmin.action?key=VSN1#/about" class="sv-getstarted interactive" title="">
  261. About Scroll Versions
  262. </a>
  263. </li>
  264. <li>
  265. <a id="confluence-about-link" href="https://confluence.atlassian.com/aboutconfluencepage.action" class="interactive" title="Get more information about Confluence">
  266. About Confluence
  267. </a>
  268. </li>
  269. </ul>
  270. </div>
  271. </nav>
  272. </li>
  273. <li>
  274. </li>
  275. <li>
  276. </li>
  277. <li>
  278. </li><li>
  279. <a id="login-link" href="https://confluence.atlassian.com/login.action?os_destination=%2Fdisplay%2FBITBUCKET%2FOAuth%2Bon%2BBitbucket" class=" user-item login-link " title="">
  280. Log in
  281. </a>
  282. </li>
  283. <li>
  284. <a id="signup-link" href="https://confluence.atlassian.com/signup.action" class=" user-item signup-link " title="">
  285. Sign up
  286. </a>
  287. </li>
  288. </ul>
  289. </div></div><!-- .aui-header-inner--></nav><!-- .aui-header -->
  290. <br class="clear">
  291. </header>
  292. <div style="position: relative; height: 549px;" id="splitter">
  293. <div style="position: absolute; left: 0px; width: 300px; height: 549px;" id="splitter-sidebar" class="padding-div">
  294. <p><a href="https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+Documentation+Home" title="Bitbucket Documentation Home">Bitbucket Documentation</a></p>
  295. <div class="plugin_pagetree">
  296. <ul class="plugin_pagetree_children_list plugin_pagetree_children_list_noleftspace">
  297. <div id="children221448814-0" class="plugin_pagetree_children">
  298. <ul class="plugin_pagetree_children_list" id="child_ul221448814-0">
  299. <li>
  300. <div class="plugin_pagetree_childtoggle_container">
  301. <a id="plusminus675385635-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  302. </a>
  303. </div>
  304. <div class="plugin_pagetree_children_content">
  305. <span class="plugin_pagetree_children_span" id="childrenspan675385635-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Getting+started+with+Bitbucket">Getting started with Bitbucket</a>
  306. </span>
  307. </div>
  308. <div id="children675385635-0" class="plugin_pagetree_children_container">
  309. </div>
  310. </li>
  311. <li>
  312. <div class="plugin_pagetree_childtoggle_container">
  313. <a id="plusminus221448818-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  314. </a>
  315. </div>
  316. <div class="plugin_pagetree_children_content">
  317. <span class="plugin_pagetree_children_span" id="childrenspan221448818-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+101">Bitbucket 101</a>
  318. </span>
  319. </div>
  320. <div id="children221448818-0" class="plugin_pagetree_children_container">
  321. </div>
  322. </li>
  323. <li>
  324. <div class="plugin_pagetree_childtoggle_container">
  325. <a id="plusminus533168212-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  326. </a>
  327. </div>
  328. <div class="plugin_pagetree_children_content">
  329. <span class="plugin_pagetree_children_span" id="childrenspan533168212-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+201+Bitbucket+with+Git+and+Mercurial">Bitbucket 201 Bitbucket with Git and Mercurial</a>
  330. </span>
  331. </div>
  332. <div id="children533168212-0" class="plugin_pagetree_children_container">
  333. </div>
  334. </li>
  335. <li>
  336. <div class="plugin_pagetree_childtoggle_container">
  337. <a id="plusminus321853005-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  338. </a>
  339. </div>
  340. <div class="plugin_pagetree_children_content">
  341. <span class="plugin_pagetree_children_span" id="childrenspan321853005-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+Teams">Bitbucket Teams</a>
  342. </span>
  343. </div>
  344. <div id="children321853005-0" class="plugin_pagetree_children_container">
  345. </div>
  346. </li>
  347. <li>
  348. <div class="plugin_pagetree_childtoggle_container">
  349. <a id="plusminus224395568-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  350. </a>
  351. </div>
  352. <div class="plugin_pagetree_children_content">
  353. <span class="plugin_pagetree_children_span" id="childrenspan224395568-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Plans+and+billing">Plans and billing</a>
  354. </span>
  355. </div>
  356. <div id="children224395568-0" class="plugin_pagetree_children_container">
  357. </div>
  358. </li>
  359. <li>
  360. <div class="plugin_pagetree_childtoggle_container">
  361. <a id="plusminus221449735-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  362. </a>
  363. </div>
  364. <div class="plugin_pagetree_children_content">
  365. <span class="plugin_pagetree_children_span" id="childrenspan221449735-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Manage+an+individual+account+or+a+team">Manage an individual account or a team</a>
  366. </span>
  367. </div>
  368. <div id="children221449735-0" class="plugin_pagetree_children_container">
  369. </div>
  370. </li>
  371. <li>
  372. <div class="plugin_pagetree_childtoggle_container">
  373. <a id="plusminus675385631-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  374. </a>
  375. </div>
  376. <div class="plugin_pagetree_children_content">
  377. <span class="plugin_pagetree_children_span" id="childrenspan675385631-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Use+and+administer+repositories">Use and administer repositories</a>
  378. </span>
  379. </div>
  380. <div id="children675385631-0" class="plugin_pagetree_children_container">
  381. </div>
  382. </li>
  383. <li>
  384. <div class="plugin_pagetree_childtoggle_container">
  385. <a id="plusminus675189068-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  386. </a>
  387. </div>
  388. <div class="plugin_pagetree_children_content">
  389. <span class="plugin_pagetree_children_span" id="childrenspan675189068-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Integrations%2C+add-ons%2C+and+hooks">Integrations, add-ons, and hooks</a>
  390. </span>
  391. </div>
  392. <div id="children675189068-0" class="plugin_pagetree_children_container">
  393. </div>
  394. </li>
  395. <li>
  396. <div class="plugin_pagetree_childtoggle_container">
  397. <a id="plusminus221449750-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  398. </a>
  399. </div>
  400. <div class="plugin_pagetree_children_content">
  401. <span class="plugin_pagetree_children_span" id="childrenspan221449750-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Use+the+issue+tracker">Use the issue tracker</a>
  402. </span>
  403. </div>
  404. <div id="children221449750-0" class="plugin_pagetree_children_container">
  405. </div>
  406. </li>
  407. <li>
  408. <div class="plugin_pagetree_childtoggle_container">
  409. <a id="plusminus221449748-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  410. </a>
  411. </div>
  412. <div class="plugin_pagetree_children_content">
  413. <span class="plugin_pagetree_children_span" id="childrenspan221449748-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Use+a+wiki">Use a wiki</a>
  414. </span>
  415. </div>
  416. <div id="children221449748-0" class="plugin_pagetree_children_container">
  417. </div>
  418. </li>
  419. <li>
  420. <div class="plugin_pagetree_childtoggle_container">
  421. <a id="plusminus222724129-0" class="plugin_pagetree_childtoggle icon icon-section-opened" href="#">
  422. </a>
  423. </div>
  424. <div class="plugin_pagetree_children_content">
  425. <span class="plugin_pagetree_children_span" id="childrenspan222724129-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Use+the+Bitbucket+REST+APIs">Use the Bitbucket REST APIs</a>
  426. </span>
  427. </div>
  428. <div id="children222724129-0" class="plugin_pagetree_children_container">
  429. <ul class="plugin_pagetree_children_list" id="child_ul222724129-0">
  430. <li>
  431. <div class="plugin_pagetree_childtoggle_container">
  432. <span class="no-children icon"></span>
  433. </div>
  434. <div class="plugin_pagetree_children_content">
  435. <span class="plugin_pagetree_children_span" id="childrenspan668173227-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Rate+limits">Rate limits</a>
  436. </span>
  437. </div>
  438. <div id="children668173227-0" class="plugin_pagetree_children_container">
  439. </div>
  440. </li>
  441. <li>
  442. <div class="plugin_pagetree_childtoggle_container">
  443. <a id="plusminus238027431-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  444. </a>
  445. </div>
  446. <div class="plugin_pagetree_children_content">
  447. <span class="plugin_pagetree_children_span plugin_pagetree_current" id="childrenspan238027431-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket">OAuth on Bitbucket</a>
  448. </span>
  449. </div>
  450. <div id="children238027431-0" class="plugin_pagetree_children_container">
  451. </div>
  452. </li>
  453. <li>
  454. <div class="plugin_pagetree_childtoggle_container">
  455. <a id="plusminus423626329-0" class="plugin_pagetree_childtoggle icon icon-section-opened" href="#">
  456. </a>
  457. </div>
  458. <div class="plugin_pagetree_children_content">
  459. <span class="plugin_pagetree_children_span" id="childrenspan423626329-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Version+2">Version 2</a>
  460. </span>
  461. </div>
  462. <div id="children423626329-0" class="plugin_pagetree_children_container">
  463. <ul class="plugin_pagetree_children_list" id="child_ul423626329-0">
  464. <li>
  465. <div class="plugin_pagetree_childtoggle_container">
  466. <a id="plusminus423626330-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  467. </a>
  468. </div>
  469. <div class="plugin_pagetree_children_content">
  470. <span class="plugin_pagetree_children_span" id="childrenspan423626330-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/repositories+Endpoint">repositories Endpoint</a>
  471. </span>
  472. </div>
  473. <div id="children423626330-0" class="plugin_pagetree_children_container">
  474. </div>
  475. </li>
  476. <li>
  477. <div class="plugin_pagetree_childtoggle_container">
  478. <span class="no-children icon"></span>
  479. </div>
  480. <div class="plugin_pagetree_children_content">
  481. <span class="plugin_pagetree_children_span" id="childrenspan423626335-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/teams+Endpoint">teams Endpoint</a>
  482. </span>
  483. </div>
  484. <div id="children423626335-0" class="plugin_pagetree_children_container">
  485. </div>
  486. </li>
  487. <li>
  488. <div class="plugin_pagetree_childtoggle_container">
  489. <span class="no-children icon"></span>
  490. </div>
  491. <div class="plugin_pagetree_children_content">
  492. <span class="plugin_pagetree_children_span" id="childrenspan423626336-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/users+Endpoint">users Endpoint</a>
  493. </span>
  494. </div>
  495. <div id="children423626336-0" class="plugin_pagetree_children_container">
  496. </div>
  497. </li>
  498. </ul>
  499. </div>
  500. </li>
  501. <li>
  502. <div class="plugin_pagetree_childtoggle_container">
  503. <a id="plusminus423626337-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  504. </a>
  505. </div>
  506. <div class="plugin_pagetree_children_content">
  507. <span class="plugin_pagetree_children_span" id="childrenspan423626337-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Version+1">Version 1</a>
  508. </span>
  509. </div>
  510. <div id="children423626337-0" class="plugin_pagetree_children_container">
  511. </div>
  512. </li>
  513. </ul>
  514. </div>
  515. </li>
  516. <li>
  517. <div class="plugin_pagetree_childtoggle_container">
  518. <a id="plusminus221449764-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  519. </a>
  520. </div>
  521. <div class="plugin_pagetree_children_content">
  522. <span class="plugin_pagetree_children_span" id="childrenspan221449764-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Frequently+Asked+Questions">Frequently Asked Questions</a>
  523. </span>
  524. </div>
  525. <div id="children221449764-0" class="plugin_pagetree_children_container">
  526. </div>
  527. </li>
  528. <li>
  529. <div class="plugin_pagetree_childtoggle_container">
  530. <a id="plusminus223216026-0" class="plugin_pagetree_childtoggle icon icon-section-closed" href="#">
  531. </a>
  532. </div>
  533. <div class="plugin_pagetree_children_content">
  534. <span class="plugin_pagetree_children_span" id="childrenspan223216026-0"> <a href="https://confluence.atlassian.com/display/BITBUCKET/Support+and+other+resources">Support and other resources</a>
  535. </span>
  536. </div>
  537. <div id="children223216026-0" class="plugin_pagetree_children_container">
  538. </div>
  539. </li>
  540. </ul>
  541. </div>
  542. </ul>
  543. <fieldset class="hidden">
  544. <input name="treeId" value="" type="hidden">
  545. <input name="treeRequestId" value="/plugins/pagetree/naturalchildren.action?decorator=none&amp;excerpt=false&amp;sort=position&amp;reverse=false&amp;disableLinks=false&amp;expandCurrent=false" type="hidden">
  546. <input name="treePageId" value="238027431" type="hidden">
  547. <input name="noRoot" value="false" type="hidden">
  548. <input name="rootPageId" value="221448814" type="hidden">
  549. <input name="rootPage" value="" type="hidden">
  550. <input name="startDepth" value="0" type="hidden">
  551. <input name="spaceKey" value="BITBUCKET" type="hidden">
  552. <input name="i18n-pagetree.loading" value="Loading..." type="hidden">
  553. <input name="i18n-pagetree.error.permission" value="Unable to load page tree. It seems that you do not have permission to view the root page." type="hidden">
  554. <input name="i18n-pagetree.eeror.general" value="There was a problem retrieving the page tree. Please check the server log file for more information." type="hidden">
  555. <input name="loginUrl" value="/login.action?os_destination=%2Fpages%2Fviewpage.action%3Ftitle%3DOAuth%2Bon%2BBitbucket%26spaceKey%3DBITBUCKET" type="hidden">
  556. <input name="mobile" value="false" type="hidden">
  557. <fieldset class="hidden">
  558. <input name="ancestorId" value="222724129" type="hidden">
  559. <input name="ancestorId" value="221448814" type="hidden">
  560. </fieldset>
  561. </fieldset>
  562. </div>
  563. <p><a href="http://confluence.atlassian.com/labels/listlabels-alphaview.action?key=BITBUCKET" class="external-link" rel="nofollow">Index</a><br>
  564. <a href="https://confluence.atlassian.com/display/BBKB/Bitbucket+Knowledge+Base+Home" class="external-link" rel="nofollow">Knowledge Base</a>
  565. <br class="atl-forced-newline"> <br class="atl-forced-newline">
  566. <a href="http://ace.atlassian.com/d/?n=a95ec606" class="external-link" rel="nofollow"><span class="image-wrap" style=""><img src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/a.gif" style="border: 0px solid black"></span></a></p>
  567. </div><div unselectable="on" class="vsplitbar" style="z-index: 4; position: absolute; -moz-user-select: none; cursor: ew-resize; left: 300px; height: 549px;"><a title="vsplitbar" tabindex="0" accesskey="L" href="javascript:void(0)"></a></div>
  568. <div style="position: absolute; left: 306px; width: 1060px; height: 549px;" id="splitter-content">
  569. <script type="text/javascript" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/doc-theme.js"></script>
  570. <div id="main" class="aui-page-panel">
  571. <div id="main-header">
  572. <div id="navigation" class="content-navigation view">
  573. <ul class="ajs-menu-bar">
  574. <li class="normal ajs-menu-item">
  575. <a id="action-menu-link" class="action ajs-menu-title aui-dropdown2-trigger" href="#" aria-haspopup="true" aria-owns="action-menu" data-container="#navigation"><span><span>Tools</span></span></a> <div id="action-menu" class="aui-dropdown2 aui-style-default most-right-menu-item">
  576. <ul id="action-menu-primary" class="section-primary first aui-dropdown2-section">
  577. <li>
  578. <a id="view-attachments-link" href="https://confluence.atlassian.com/pages/viewpageattachments.action?pageId=238027431" rel="nofollow" class="action-view-attachments" accesskey="t" title="View Attachments (Type 't')">
  579. <span>A<u>t</u>tachments (1)</span> </a>
  580. </li>
  581. <li>
  582. <a id="action-view-history-link" href="https://confluence.atlassian.com/pages/viewpreviousversions.action?pageId=238027431" rel="nofollow" class="action-view-history" title="">
  583. <span>Page History</span> </a>
  584. </li>
  585. <li>
  586. <a id="action-page-permissions-link" href="https://confluence.atlassian.com/pages/viewinfo.action?pageId=238027431" rel="nofollow" class="action-page-permissions" title="Edit restrictions">
  587. <span>Restrictions</span> </a>
  588. </li>
  589. </ul>
  590. <ul id="action-menu-secondary" class="section-secondary aui-dropdown2-section">
  591. <li>
  592. <a id="view-page-info-link" href="https://confluence.atlassian.com/pages/viewinfo.action?pageId=238027431" rel="nofollow" class="action-view-info" title="">
  593. <span>Page Information</span> </a>
  594. </li>
  595. <li>
  596. <a id="link-to-page-link" href="https://confluence.atlassian.com/pages/viewinfo.action?pageId=238027431" rel="nofollow" class="" title="Link to this Page (Type 'k')">
  597. <span>Link to this Page…</span> </a>
  598. </li>
  599. <li>
  600. <a id="view-in-hierarchy-link" href="https://confluence.atlassian.com/pages/listpages-dirview.action?key=BITBUCKET&amp;openId=238027431#selectedPageInHierarchy" rel="nofollow" class="" title="">
  601. <span>View in Hierarchy</span> </a>
  602. </li>
  603. <li>
  604. <a id="action-view-source-link" href="https://confluence.atlassian.com/plugins/viewsource/viewpagesrc.action?pageId=238027431" rel="nofollow" class="action-view-source popup-link" title="">
  605. <span>View Source</span> </a>
  606. </li>
  607. <li>
  608. <a id="action-export-word-link" href="https://confluence.atlassian.com/exportword?pageId=238027431" rel="nofollow" class="action-export-word" title="">
  609. <span>Export to Word</span> </a>
  610. </li>
  611. </ul>
  612. </div>
  613. </li>
  614. </ul>
  615. </div>
  616. <div id="title-heading" class="pagetitle with-breadcrumbs">
  617. <div class="space-logo " data-key="BITBUCKET" data-name="Bitbucket" data-entity-type="confluence.space">
  618. <a><img class="logo space custom" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/BITBUCKET.png" alt=""></a>
  619. </div>
  620. <div id="breadcrumb-section">
  621. <ol id="breadcrumbs">
  622. <li class="first">
  623. <span class=""><a href="https://confluence.atlassian.com/display/BITBUCKET?src=breadcrumbs-homepage">Bitbucket</a></span>
  624. </li><li>
  625. <span class=""><a href="https://confluence.atlassian.com/display/BITBUCKET/Bitbucket+Documentation+Home?src=breadcrumbs">Bitbucket Documentation Home</a></span>
  626. </li><li>
  627. <span class=""><a href="https://confluence.atlassian.com/display/BITBUCKET/Use+the+Bitbucket+REST+APIs?src=breadcrumbs-parent">Use the Bitbucket REST APIs</a></span>
  628. </li></ol>
  629. </div>
  630. <h1 id="title-text" class="with-breadcrumbs">
  631. <a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket">OAuth on Bitbucket</a>
  632. </h1>
  633. </div>
  634. </div>
  635. <div id="content" class="page view">
  636. <div id="action-messages">
  637. </div>
  638. <script type="text/x-template" title="searchResultsGrid">
  639. <table class="aui">
  640. <thead>
  641. <tr class="header">
  642. <th class="search-result-title">Page Title</th>
  643. <th class="search-result-space">Space</th>
  644. <th class="search-result-date">Updated</th>
  645. </tr>
  646. </thead>
  647. </table>
  648. </script>
  649. <script type="text/x-template" title="searchResultsGridCount">
  650. <p class="search-result-count">{0}</p>
  651. </script>
  652. <script type="text/x-template" title="searchResultsGridRow">
  653. <tr class="search-result">
  654. <td class="search-result-title"><a href="{1}" class="content-type-{2}"><span>{0}</span></a></td>
  655. <td class="search-result-space"><a class="space" href="/display/{4}/" title="{3}">{3}</a></td>
  656. <td class="search-result-date"><span class="date" title="{6}">{5}</span></td>
  657. </tr>
  658. </script>
  659. <fieldset class="hidden parameters">
  660. <input title="parentPageId" value="222724129" type="hidden">
  661. </fieldset>
  662. <a href="#page-metadata-end" class="assistive">Skip to end of metadata</a>
  663. <div id="page-metadata-start" class="assistive"></div>
  664. <div class="page-metadata">
  665. <ul>
  666. <li class="page-metadata-item noprint">
  667. <a id="content-metadata-page-restrictions" href="#" rel="nofollow" class="hidden" title="Page restrictions apply">
  668. <img alt="" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/red_padlock.html" title="" height="16" width="16">
  669. <span></span> </a>
  670. </li>
  671. <li class="page-metadata-item noprint">
  672. <a original-title="1 attachment" id="content-metadata-attachments" href="https://confluence.atlassian.com/pages/viewpageattachments.action?pageId=238027431&amp;metadataLink=true" rel="nofollow" class="" accesskey="t">
  673. <img alt="" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/grey_attach.html" title="" height="16" width="16">
  674. <span></span> </a>
  675. </li>
  676. <li class="page-metadata-modification-info">
  677. Created by <span class="author"> <a href="https://confluence.atlassian.com/display/%7Edchambers" class="url fn">David Chambers [Atlassian]</a></span>, last modified by <span class="editor"> <a href="https://confluence.atlassian.com/display/%7Edstevens" class="url fn">Dan Stevens [Atlassian]</a></span> on <a class="last-modified" title="Mar 12, 2014 18:28" href="https://confluence.atlassian.com/pages/diffpagesbyversion.action?pageId=238027431&amp;selectedPageVersions=42&amp;selectedPageVersions=43">Mar 12, 2014</a>
  678. </li>
  679. </ul>
  680. </div>
  681. <a href="#page-metadata-start" class="assistive">Go to start of metadata</a>
  682. <div id="page-metadata-end" class="assistive"></div>
  683. <fieldset class="hidden parameters">
  684. <input title="browsePageTreeMode" value="view" type="hidden">
  685. </fieldset>
  686. <div class="wiki-content">
  687. <p>You can develop an application that uses &nbsp;Bitbucket
  688. service through its REST API. &nbsp;For example, you can write a web
  689. application that access Bitbucket issue resources.</p><p>Bitbucket
  690. authenticates your application and authorizes access using
  691. the&nbsp;OAuth 1.0a with&nbsp;HMAC-SHA1&nbsp;(shared secret) signatures.
  692. We support both 3-Legged<strong>&nbsp;</strong>and&nbsp;2-Legged OAuth. RSA-SHA1 (the public/private keys feature) is&nbsp;<em><strong>not</strong></em>&nbsp;currently supported. &nbsp;</p><p>Finally,
  693. you should use an existing OAuth library for your application instead
  694. of implementing the protocol yourself. &nbsp;Numerous reusable libraries
  695. in many languages exist for use with OAuth –&nbsp;they are listed on
  696. the&nbsp;<span style="color: rgb(0,109,175);"><a href="http://oauth.net/code/" class="external-link" rel="nofollow">official oauth.net&nbsp;</a>site</span>. &nbsp;</p><h2 id="OAuthonBitbucket-WalkthroughtheOAuth1.0aworkflow">Walk through the OAuth&nbsp;1.0a work flow</h2><p>This
  697. section steps you through the basic OAuth 1.0a&nbsp;work flow of
  698. registering your consumer and getting set up to make API calls. &nbsp;It
  699. is difficult to test this work flow with&nbsp;<code>curl</code>. If you don't want to write a quick client, you can try it for yourself interactively&nbsp;<a href="http://term.ie/oauth/example/client.php" class="external-link" rel="nofollow">using a testing site</a>. The site will create the more complex, calculated values OAuth needs (such as timestamps) for you.</p><p><style type="text/css">/*<![CDATA[*/
  700. div.rbtoc1420384952610 {padding: 0px;}
  701. div.rbtoc1420384952610 ul {list-style: disc;margin-left: 0px;}
  702. div.rbtoc1420384952610 li {margin-left: 0px;padding-left: 0px;}
  703. /*]]>*/</style></p><div class="toc-macro rbtoc1420384952610">
  704. <ul class="toc-indentation">
  705. <li><a href="#OAuthonBitbucket-Step1.CreateanOAuthkeyandsecret">Step 1. Create an OAuth key and secret</a></li>
  706. <li><a href="#OAuthonBitbucket-Step2.RequestarequesttokenfromBitbucket">Step 2. Request a request token from Bitbucket</a></li>
  707. <li><a href="#OAuthonBitbucket-Step3.RedirecttheusertoBitbuckettoauthorizeyourapplication">Step 3. Redirect the user to Bitbucket to authorize your application</a></li>
  708. <li><a href="#OAuthonBitbucket-Step4.RequestanAccessToken">Step 4. Request an Access Token</a></li>
  709. </ul>
  710. </div><p></p><h3 id="OAuthonBitbucket-Step1.CreateanOAuthkeyandsecret">Step 1. Create an OAuth key and secret</h3><p>OAuth
  711. needs a key and secret together these are know as an OAuth consumer.
  712. You can create a consumer on any&nbsp;existing individual or team
  713. account. To create a consumer, do the following:</p><p></p><ol><li>Log into your Bitbucket account.</li><li>Click&nbsp;<strong>accountname &gt; Manage account</strong>&nbsp;from the menu.<br>The<strong>&nbsp;Account</strong>&nbsp;page appears.</li><li>Click&nbsp;<strong>OAuth</strong>&nbsp;from the menu bar.</li><li><p>Click the&nbsp;<strong>Add consumer</strong>&nbsp;button. &nbsp;<br>The system requests the following information:</p><div class="table-wrap"><table class="confluenceTable tablesorter"><thead><tr class="sortableHeader"><th data-column="0" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Field</div></th><th data-column="1" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Description</div></th></tr></thead><tbody><tr><td class="confluenceTd"><strong>Name</strong></td><td class="confluenceTd">The display name for your consumer. This must be unique within your account. This is required.</td></tr><tr><td class="confluenceTd"><strong>Description</strong></td><td class="confluenceTd">An optional description of what your consumer does.</td></tr><tr><td class="confluenceTd"><strong>URL</strong></td><td class="confluenceTd">An optional URL where the curious can go to learn more about your cool application.</td></tr></tbody></table></div></li><li>Press&nbsp;<strong>Add consumer</strong>.&nbsp;<br>The system generates a key and a secret for you.</li><li>Toggle the consumer name to see the generated&nbsp;<strong>Key</strong>&nbsp;and&nbsp;<strong>Secret</strong>&nbsp;value for your consumer.</li></ol><p></p><p>&nbsp;Optionally, you could also obtain a consumer using the&nbsp;<a href="https://confluence.atlassian.com/display/BITBUCKET/oauth+Resource">oauth Resource</a>&nbsp;on the&nbsp;<a href="https://confluence.atlassian.com/display/BITBUCKET/users+Endpoint+-+1.0">users Endpoint - 1.0</a>.</p><h3 id="OAuthonBitbucket-Step2.RequestarequesttokenfromBitbucket">Step 2. Request a request token from Bitbucket</h3><p>Your
  714. application first needs to get an OAuth request token from Bitbucket.
  715. &nbsp;It does this trough a POST request to&nbsp;&nbsp;<code><a href="https://bitbucket.org/api/1.0/oauth/request_token" class="external-link" rel="nofollow">https://bitbucket.org/api/1.0/oauth/request_token</a></code>. &nbsp; Your POST must include:</p><p></p><div class="table-wrap"><table class="confluenceTable tablesorter"><thead><tr class="sortableHeader"><th data-column="0" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Parameter</div></th><th data-column="1" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Required</div></th><th data-column="2" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Description</div></th></tr></thead><tbody><tr><td class="confluenceTd"><code>oauth_consumer_key</code></td><td class="confluenceTd">Yes</td><td class="confluenceTd">The consumer key. This value is generated by Bitbucket.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_nonce</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd"><p>A
  716. random string, uniquely generated for each request. The nonce allows
  717. the Service Provider to verify that a request has never been made before
  718. and helps prevent replay attacks when requests are made over a
  719. non-secure channel (such as HTTP).</p></td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_signature</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The signature as defined by the consumer. <span style="color: rgb(0,0,0);">OAuth
  720. does not mandate a particular signature method, as each implementation
  721. can have its own unique requirements. Currently, Bitbucket only supports
  722. </span>HMAC-SHA1 or PLAINTEXT signatures<span style="color: rgb(0,0,0);">.</span></td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_signature_method</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The signature method the consumer used to sign the request. This is determined by your application.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_timestamp</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The
  723. number of seconds since January 1, 1970 00:00:00 GMT. The timestamp
  724. value MUST be a positive integer and MUST be equal or greater than the
  725. timestamp used in previous requests. If the timestamp is not within a
  726. few minutes either side of the actual current time, the request may be
  727. rejected.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_callback</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd"><p>The URL to redirect a user to should they approve your application's access to their account. For example:</p><p>http%3A%2F%coolapp.local%2Fauth.php<span style="color: rgb(85,85,85);">,b</span>itbucketclient%3A%2F%2Fcallback</p></td></tr></tbody></table></div><p></p><p>&nbsp;The following is an example of a POST call:</p><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  728. <pre>https://bitbucket.org/api/1.0/oauth/request_token?oauth_version=1.0&amp;oauth_nonce=7f2325b3c36bd49afa0a33044d7c6930&amp;oauth_timestamp=1366243208&amp;oauth_consumer_key=HUpRcDUduZrepL6sYJ&amp;oauth_callback=http%3A%2F%2Flocal%3Fdump&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=qZyTwVA48RzmtCHvN9mYWmlmSVU%3D</pre>
  729. </div></div><p>Bitbucket validates your request and responds with a set of temporary credentials:</p><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  730. <pre>HTTP/1.1 200 OK
  731. Server: nginx/1.2.4
  732. Date: Thu, 18 Apr 2013 15:56:00 GMT
  733. Content-Type: application/x-www-form-urlencoded
  734. Content-Length: 112
  735. Connection: keep-alive
  736. X-Served-By: bitbucket05
  737. Content-Language: en
  738. X-Static-Version: 209da49a2dfa
  739. Vary: Accept-Language, Cookie
  740. X-Version: 913e0af5d84d
  741. ETag: "cd2fb61a6e2ac48da4b1c3b377aca5d7"
  742. X-Request-Count: 260
  743. Strict-Transport-Security: max-age=2592000
  744. X-Content-Type-Options: nosniff
  745. oauth_token_secret=3PddbU47vqStvrFag8Dwnpqs28HxAKeq&amp;oauth_token=4vyW6b49ZxcZDK64eY&amp;oauth_callback_confirmed=true</pre>
  746. </div></div><p>These credentials are the following:</p><div class="table-wrap"><table class="confluenceTable tablesorter"><thead><tr class="sortableHeader"><th data-column="0" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Value</div></th><th data-column="1" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Description</div></th></tr></thead><tbody><tr><td class="confluenceTd"><pre>oauth_token_secret</pre></td><td class="confluenceTd"><p class="newpage">The token shared-secret.</p></td></tr><tr><td class="confluenceTd"><pre>oauth_token</pre></td><td class="confluenceTd"><p class="newpage">The request token.</p></td></tr><tr><td class="confluenceTd"><pre>oauth_callback_confirmed</pre></td><td class="confluenceTd">Must be present and true.</td></tr></tbody></table></div><h3 id="OAuthonBitbucket-Step3.RedirecttheusertoBitbuckettoauthorizeyourapplication">Step 3. Redirect the user to Bitbucket to authorize your application</h3><p class="newpage">Access
  747. tokens allow your application to interact with Bitbucket on behalf of
  748. user. Before your application can get access tokens, the Bitbucket user
  749. must authorize your application to act on his/her behalf.&nbsp;To get
  750. authorization, your webserver makes a GET to&nbsp;<code><a href="https://bitbucket.org/api/1.0/oauth/authenticate" class="external-link" rel="nofollow">https://bitbucket.org/api/1.0/oauth/authenticate</a></code>&nbsp;and passes the&nbsp;<code>oauth_token</code>&nbsp;(request token) returned in the last step's POST. &nbsp;<span>For example, the following call:</span></p><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  751. <pre>https://bitbucket.org/api/1.0/oauth/authenticate?oauth_token=4vyW6b49ZxcZDK64eY</pre>
  752. </div></div><p class="newpage"><span>If the user isn't logged into
  753. Bitbucket, Bitbucket asks the user to login. In this way, your
  754. application verifies the identity of the account holder. Then, Bitbucket
  755. confirms with the user that your application should have account
  756. access:</span></p><p class="newpage"><span><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/myconsumer.png" data-image-src="/download/attachments/304578655/myconsumer.png?version=3&amp;modificationDate=1400595237119&amp;api=v2"><br></span></p><p class="newpage"><span>Bitbucket
  757. then redirects the user to the callback provided in the previous Step 2
  758. above. Bitbucket returns in the redirect an&nbsp;<code>oauth_verifier</code>&nbsp;along with the&nbsp;<code>oauth_token</code>&nbsp;your application provided in its request.</span></p><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  759. <pre>http://localhost/?dump&amp;oauth_verifier=2287965216&amp;oauth_token=URjPjc8CxLgNBdh7zL</pre>
  760. </div></div><p class="newpage">Your application should store the&nbsp;<code>oauth_verifier</code>&nbsp;so you can use it in the next step. &nbsp;Bitbucket requires use of the&nbsp;<code>oauth_verifier</code>&nbsp;which is an OAuth 1.0a feature.</p><h3 id="OAuthonBitbucket-Step4.RequestanAccessToken">Step 4. Request an Access Token</h3><p class="newpage">The
  761. last step is to obtain credentials that let you access resources on
  762. Bitbucket. &nbsp;Your application gets these by making a POST call
  763. to&nbsp;<code><a href="https://bitbucket.org/api/1.0/oauth/access_token" class="external-link" rel="nofollow">https://bitbucket.org/api/1.0/oauth/access_token</a></code>.&nbsp;&nbsp;Your application must construct a request URI by adding the following parameters:</p><p class="newpage"></p><div class="table-wrap"><table class="confluenceTable tablesorter"><thead><tr class="sortableHeader"><th data-column="0" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Parameter</div></th><th data-column="1" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Required</div></th><th data-column="2" class="confluenceTh sortableHeader"><div class="tablesorter-header-inner">Description</div></th></tr></thead><tbody><tr><td class="confluenceTd"><code>oauth_consumer_key</code></td><td class="confluenceTd">Yes</td><td class="confluenceTd">The consumer key. This value is generated by Bitbucket.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_token</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The <code>oauth_token</code> returned by the <code>request_token</code> call.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_nonce</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd"><p>A
  764. random string, uniquely generated for each request. The nonce allows
  765. the Service Provider to verify that a request has never been made before
  766. and helps prevent replay attacks when requests are made over a
  767. non-secure channel (such as HTTP).</p></td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_signature</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The signature as defined by the consumer. <span style="color: rgb(0,0,0);">OAuth
  768. does not mandate a particular signature method, as each implementation
  769. can have its own unique requirements. Currently, Bitbucket only supports
  770. </span>HMAC-SHA1<span style="color: rgb(0,0,0);"> signatures.</span></td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_signature_method</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The signature method the consumer used to sign the request. HMAC-SHA1 is the method supported by Bitbucket.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_timestamp</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd">The
  771. number of seconds since January 1, 1970 00:00:00 GMT. The timestamp
  772. value MUST be a positive integer and MUST be equal or greater than the
  773. timestamp used in previous requests. If the timestamp is not within a
  774. five minutes either side of the actual current time, the request may be
  775. rejected.</td></tr><tr><td colspan="1" class="confluenceTd"><code>oauth_verifier</code></td><td colspan="1" class="confluenceTd">Yes</td><td colspan="1" class="confluenceTd"><p><span style="color: rgb(0,0,0);">This
  776. value is returned as a query parameter in the URL that the token
  777. authorization page redirects to after the user clicked "grant
  778. permission" on Bitbucket. For example:</span></p><pre>http://localhost?oauth_verifier=0352671347&amp;oauth_token=QAx6g4npas3tdARQUY</pre></td></tr></tbody></table></div><p></p><p class="newpage">An example of this request is:</p><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  779. <pre>https://bitbucket.org/api/1.0/oauth/access_token?oauth_version=1.0&amp;oauth_nonce=d6d773f282740f2b25112f819b0d3b7c&amp;oauth_timestamp=1366242978&amp;oauth_consumer_key=HUpRcDUduZrepL6sYJ&amp;oauth_verifier=2287965216&amp;oauth_token=YRpuxpCLYCJpXJyUE2&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_signature=vmJ3LuudxaW5Rs7xLJa56TLZwPE%3D</pre>
  780. </div></div><p>The request returns an access token such as the following:</p><div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  781. <pre>oauth_token_secret=aH9bzCKjKT5uXWueeENr9LKNh2jyyUVj&amp;oauth_token=NqFQPmgsa4QQ9StW2R</pre>
  782. </div></div><p>With this access token your application can make Bitbucket API calls.</p>
  783. </div>
  784. <!--
  785. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  786. xmlns:dc="http://purl.org/dc/elements/1.1/"
  787. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  788. <rdf:Description
  789. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket"
  790. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket"
  791. dc:title="OAuth on Bitbucket"
  792. trackback:ping="https://confluence.atlassian.com/rpc/trackback/238027431"/>
  793. </rdf:RDF>
  794. -->
  795. <div id="likes-and-labels-container"><div id="likes-section"><span class="like-summary"><a href="" class="likes" data-content-id="238027431">2 people</a> like this</span></div><div id="labels-section" class="pageSection group">
  796. <div class="labels-section-content content-column" entityid="238027431" entitytype="page">
  797. <div class="labels-content">
  798. <ul class="label-list label-list-right ">
  799. <li class="aui-label " data-label-id="193626114">
  800. <a class="aui-label-split-main" href="https://confluence.atlassian.com/label/BITBUCKET/oauth">oauth</a>
  801. </li><li class="aui-label " data-label-id="1786">
  802. <a class="aui-label-split-main" href="https://confluence.atlassian.com/label/BITBUCKET/permissions">permissions</a>
  803. </li><li class="aui-label " data-label-id="221675569">
  804. <a class="aui-label-split-main" href="https://confluence.atlassian.com/label/BITBUCKET/bitbucket">bitbucket</a>
  805. </li><li class="aui-label " data-label-id="2240">
  806. <a class="aui-label-split-main" href="https://confluence.atlassian.com/label/BITBUCKET/overview">overview</a>
  807. </li> </ul>
  808. </div>
  809. </div></div></div>
  810. <div id="children-section" class="pageSection children-showing group">
  811. <div class="section-header ">
  812. <h2 id="children-section-title" class="section-title">
  813. <a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?showChildren=false#children" class="children-show-hide">
  814. 4 Child Pages
  815. </a>
  816. </h2>
  817. <a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?showChildren=false#children" class="children-show-hide icon"></a>
  818. <!--
  819. <span class="noprint grey">
  820. <a class="children-subtitle" href="/pages/listpages-dirview.action?key=BITBUCKET&amp;openId=238027431#selectedPageInHierarchy">Reorder Pages</a>
  821. </span>
  822. -->
  823. </div>
  824. <div id="page-children" class="pageSectionBody children-loaded">
  825. <span class="child-display">
  826. <span class="icon icon-page" title="Page">Page:</span> <a href="https://confluence.atlassian.com/display/BITBUCKET/oauth+Endpoint">oauth Endpoint</a>
  827. </span>
  828. <span class="child-display">
  829. <span class="icon icon-page" title="Page">Page:</span> <a href="https://confluence.atlassian.com/display/BITBUCKET/Troubleshooting+OAuth+Requests">Troubleshooting OAuth Requests</a>
  830. </span>
  831. <span class="child-display">
  832. <span class="icon icon-page" title="Page">Page:</span> <a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+FAQ">OAuth FAQ</a>
  833. </span>
  834. <span class="child-display">
  835. <span class="icon icon-page" title="Page">Page:</span> <a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+consumer+examples">OAuth consumer examples</a>
  836. </span>
  837. </div>
  838. </div>
  839. <div id="comments-section" class="pageSection group">
  840. <div class="section-header">
  841. <h2 id="comments-section-title" class="section-title">
  842. 39 Comments
  843. </h2>
  844. </div>
  845. <ol class="comment-threads top-level" id="page-comments">
  846. <li id="comment-thread-288658352" class="comment-thread">
  847. <div class="comment " id="comment-288658352">
  848. <p class="comment-user-logo">
  849. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  850. <div class="comment-header">
  851. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  852. </div>
  853. <div class="comment-body">
  854. <div class="comment-content wiki-content">
  855. <p>Just to say, i did use Zend Library to work
  856. with oauth and it is the best way to get the job done. Tried many
  857. libraries but the best use it was Zend OAuth.&nbsp;</p>
  858. </div>
  859. <div class="comment-actions">
  860. <ul class="comment-actions-secondary">
  861. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=288658352#comment-288658352" id="comment-permalink-288658352"><span>Permalink</span></a></li>
  862. </ul>
  863. <ul class="comment-actions-primary">
  864. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 30, 2012 12:55" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=288658352#comment-288658352"><span>May 30, 2012</span></a></li>
  865. </ul>
  866. </div>
  867. </div>
  868. </div>
  869. <!--
  870. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  871. xmlns:dc="http://purl.org/dc/elements/1.1/"
  872. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  873. <rdf:Description
  874. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=288658352#comment-288658352"
  875. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=288658352#comment-288658352"
  876. dc:title="OAuth on Bitbucket"
  877. trackback:ping="https://confluence.atlassian.com/rpc/trackback/288658352"/>
  878. </rdf:RDF>
  879. -->
  880. </li>
  881. <li id="comment-thread-317950759" class="comment-thread">
  882. <div class="comment odd" id="comment-317950759">
  883. <p class="comment-user-logo">
  884. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  885. <div class="comment-header">
  886. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  887. </div>
  888. <div class="comment-body">
  889. <div class="comment-content wiki-content">
  890. <p>AIn't this cool? Bitbucket is awsome</p>
  891. </div>
  892. <div class="comment-actions">
  893. <ul class="comment-actions-secondary">
  894. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=317950759#comment-317950759" id="comment-permalink-317950759"><span>Permalink</span></a></li>
  895. </ul>
  896. <ul class="comment-actions-primary">
  897. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jan 20, 2013 05:15" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=317950759#comment-317950759"><span>Jan 20, 2013</span></a></li>
  898. </ul>
  899. </div>
  900. </div>
  901. </div>
  902. <!--
  903. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  904. xmlns:dc="http://purl.org/dc/elements/1.1/"
  905. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  906. <rdf:Description
  907. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=317950759#comment-317950759"
  908. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=317950759#comment-317950759"
  909. dc:title="OAuth on Bitbucket"
  910. trackback:ping="https://confluence.atlassian.com/rpc/trackback/317950759"/>
  911. </rdf:RDF>
  912. -->
  913. </li>
  914. <li id="comment-thread-323390078" class="comment-thread">
  915. <div class="comment " id="comment-323390078">
  916. <p class="comment-user-logo">
  917. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: contact5" title="contact5"> </p>
  918. <div class="comment-header">
  919. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Econtact5" class="url fn">Daniel Knell</a></h4>
  920. </div>
  921. <div class="comment-body">
  922. <div class="comment-content wiki-content">
  923. <p>can I use the oauth credentials to download a tarball of a repository?</p>
  924. </div>
  925. <div class="comment-actions">
  926. <ul class="comment-actions-secondary">
  927. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390078#comment-323390078" id="comment-permalink-323390078"><span>Permalink</span></a></li>
  928. </ul>
  929. <ul class="comment-actions-primary">
  930. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Feb 22, 2013 17:40" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390078#comment-323390078"><span>Feb 22, 2013</span></a></li>
  931. </ul>
  932. </div>
  933. </div>
  934. </div>
  935. <!--
  936. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  937. xmlns:dc="http://purl.org/dc/elements/1.1/"
  938. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  939. <rdf:Description
  940. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390078#comment-323390078"
  941. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390078#comment-323390078"
  942. dc:title="OAuth on Bitbucket"
  943. trackback:ping="https://confluence.atlassian.com/rpc/trackback/323390078"/>
  944. </rdf:RDF>
  945. -->
  946. <ol class="comment-threads">
  947. <li id="comment-thread-323390152" class="comment-thread">
  948. <div class="comment odd" id="comment-323390152">
  949. <p class="comment-user-logo">
  950. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  951. <div class="comment-header">
  952. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  953. </div>
  954. <div class="comment-body">
  955. <div class="comment-content wiki-content">
  956. <p>Hi Daniel,</p><p>We don't have the option to download the tarball. You can <a href="https://bitbucket.org/site/master/issues" class="external-link" rel="nofollow">file an enhancement request</a> for that feature.</p><p>Cheers,</p><p>Mary</p>
  957. </div>
  958. <div class="comment-actions">
  959. <ul class="comment-actions-secondary">
  960. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390152#comment-323390152" id="comment-permalink-323390152"><span>Permalink</span></a></li>
  961. </ul>
  962. <ul class="comment-actions-primary">
  963. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Feb 22, 2013 19:20" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390152#comment-323390152"><span>Feb 22, 2013</span></a></li>
  964. </ul>
  965. </div>
  966. </div>
  967. </div>
  968. <!--
  969. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  970. xmlns:dc="http://purl.org/dc/elements/1.1/"
  971. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  972. <rdf:Description
  973. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390152#comment-323390152"
  974. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=323390152#comment-323390152"
  975. dc:title="OAuth on Bitbucket"
  976. trackback:ping="https://confluence.atlassian.com/rpc/trackback/323390152"/>
  977. </rdf:RDF>
  978. -->
  979. <ol class="comment-threads">
  980. <li id="comment-thread-400000004" class="comment-thread">
  981. <div class="comment " id="comment-400000004">
  982. <p class="comment-user-logo">
  983. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  984. <div class="comment-header">
  985. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  986. </div>
  987. <div class="comment-body">
  988. <div class="comment-content wiki-content">
  989. <p>Oh, really...</p><p>I hope you will enhance this oauth access in the future.</p>
  990. </div>
  991. <div class="comment-actions">
  992. <ul class="comment-actions-secondary">
  993. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=400000004#comment-400000004" id="comment-permalink-400000004"><span>Permalink</span></a></li>
  994. </ul>
  995. <ul class="comment-actions-primary">
  996. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Sep 09, 2013 01:39" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=400000004#comment-400000004"><span>Sep 09, 2013</span></a></li>
  997. </ul>
  998. </div>
  999. </div>
  1000. </div>
  1001. <!--
  1002. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1003. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1004. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1005. <rdf:Description
  1006. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=400000004#comment-400000004"
  1007. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=400000004#comment-400000004"
  1008. dc:title="OAuth on Bitbucket"
  1009. trackback:ping="https://confluence.atlassian.com/rpc/trackback/400000004"/>
  1010. </rdf:RDF>
  1011. -->
  1012. </li>
  1013. </ol>
  1014. </li>
  1015. </ol>
  1016. </li>
  1017. <li id="comment-thread-337772788" class="comment-thread">
  1018. <div class="comment odd" id="comment-337772788">
  1019. <p class="comment-user-logo">
  1020. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: kamranm1200" title="kamranm1200"> </p>
  1021. <div class="comment-header">
  1022. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ekamranm1200" class="url fn">Kamran Mackey</a></h4>
  1023. </div>
  1024. <div class="comment-body">
  1025. <div class="comment-content wiki-content">
  1026. <p>Does your API work with Zapier?</p>
  1027. </div>
  1028. <div class="comment-actions">
  1029. <ul class="comment-actions-secondary">
  1030. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=337772788#comment-337772788" id="comment-permalink-337772788"><span>Permalink</span></a></li>
  1031. </ul>
  1032. <ul class="comment-actions-primary">
  1033. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Apr 11, 2013 01:23" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=337772788#comment-337772788"><span>Apr 11, 2013</span></a></li>
  1034. </ul>
  1035. </div>
  1036. </div>
  1037. </div>
  1038. <!--
  1039. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1040. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1041. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1042. <rdf:Description
  1043. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=337772788#comment-337772788"
  1044. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=337772788#comment-337772788"
  1045. dc:title="OAuth on Bitbucket"
  1046. trackback:ping="https://confluence.atlassian.com/rpc/trackback/337772788"/>
  1047. </rdf:RDF>
  1048. -->
  1049. <ol class="comment-threads">
  1050. <li id="comment-thread-338363902" class="comment-thread">
  1051. <div class="comment " id="comment-338363902">
  1052. <p class="comment-user-logo">
  1053. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1054. <div class="comment-header">
  1055. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1056. </div>
  1057. <div class="comment-body">
  1058. <div class="comment-content wiki-content">
  1059. <p>Kamran,</p><p>I've used Zapier but not with
  1060. the BB APIs. &nbsp;There is no reason they shouldn't work. &nbsp;You
  1061. should give it a try&nbsp;– it is a good idea. Let me know how it
  1062. goes...</p><p>Mary</p>
  1063. </div>
  1064. <div class="comment-actions">
  1065. <ul class="comment-actions-secondary">
  1066. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=338363902#comment-338363902" id="comment-permalink-338363902"><span>Permalink</span></a></li>
  1067. </ul>
  1068. <ul class="comment-actions-primary">
  1069. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Apr 12, 2013 16:31" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=338363902#comment-338363902"><span>Apr 12, 2013</span></a></li>
  1070. </ul>
  1071. </div>
  1072. </div>
  1073. </div>
  1074. <!--
  1075. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1076. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1077. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1078. <rdf:Description
  1079. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=338363902#comment-338363902"
  1080. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=338363902#comment-338363902"
  1081. dc:title="OAuth on Bitbucket"
  1082. trackback:ping="https://confluence.atlassian.com/rpc/trackback/338363902"/>
  1083. </rdf:RDF>
  1084. -->
  1085. </li>
  1086. </ol>
  1087. </li>
  1088. <li id="comment-thread-347341365" class="comment-thread">
  1089. <div class="comment odd" id="comment-347341365">
  1090. <p class="comment-user-logo">
  1091. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  1092. <div class="comment-header">
  1093. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  1094. </div>
  1095. <div class="comment-body">
  1096. <div class="comment-content wiki-content">
  1097. <p>My god some actual <strong>Sample Code</strong> would be nice for these API docs. In various languages!</p>
  1098. </div>
  1099. <div class="comment-actions">
  1100. <ul class="comment-actions-secondary">
  1101. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=347341365#comment-347341365" id="comment-permalink-347341365"><span>Permalink</span></a></li>
  1102. </ul>
  1103. <ul class="comment-actions-primary">
  1104. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 03, 2013 00:39" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=347341365#comment-347341365"><span>May 03, 2013</span></a></li>
  1105. </ul>
  1106. </div>
  1107. </div>
  1108. </div>
  1109. <!--
  1110. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1111. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1112. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1113. <rdf:Description
  1114. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=347341365#comment-347341365"
  1115. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=347341365#comment-347341365"
  1116. dc:title="OAuth on Bitbucket"
  1117. trackback:ping="https://confluence.atlassian.com/rpc/trackback/347341365"/>
  1118. </rdf:RDF>
  1119. -->
  1120. <ol class="comment-threads">
  1121. <li id="comment-thread-349634732" class="comment-thread">
  1122. <div class="comment " id="comment-349634732">
  1123. <p class="comment-user-logo">
  1124. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1125. <div class="comment-header">
  1126. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1127. </div>
  1128. <div class="comment-body">
  1129. <div class="comment-content wiki-content">
  1130. <p>We have this page:&nbsp;<a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+consumer+examples">OAuth Consumer Examples</a>&nbsp;with a single sample but we have plans to add more. &nbsp;Let me know if that doesn't work for you.</p>
  1131. </div>
  1132. <div class="comment-actions">
  1133. <ul class="comment-actions-secondary">
  1134. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634732#comment-349634732" id="comment-permalink-349634732"><span>Permalink</span></a></li>
  1135. </ul>
  1136. <ul class="comment-actions-primary">
  1137. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 06, 2013 15:15" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634732#comment-349634732"><span>May 06, 2013</span></a></li>
  1138. </ul>
  1139. </div>
  1140. </div>
  1141. </div>
  1142. <!--
  1143. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1144. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1145. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1146. <rdf:Description
  1147. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634732#comment-349634732"
  1148. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634732#comment-349634732"
  1149. dc:title="OAuth on Bitbucket"
  1150. trackback:ping="https://confluence.atlassian.com/rpc/trackback/349634732"/>
  1151. </rdf:RDF>
  1152. -->
  1153. </li>
  1154. </ol>
  1155. </li>
  1156. <li id="comment-thread-349634733" class="comment-thread">
  1157. <div class="comment odd" id="comment-349634733">
  1158. <p class="comment-user-logo">
  1159. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: gabipetrovay" title="gabipetrovay"> </p>
  1160. <div class="comment-header">
  1161. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Egabipetrovay" class="url fn">Gabriel Petrovay</a></h4>
  1162. </div>
  1163. <div class="comment-body">
  1164. <div class="comment-content wiki-content">
  1165. <p>Are there any plans to add OAuth2 ?</p><p>I've created an issue for this:&nbsp;<a href="https://bitbucket.org/site/master/issue/7280/are-there-any-plans-to-adding-switching-to" class="external-link" rel="nofollow">https://bitbucket.org/site/master/issue/7280/are-there-any-plans-to-adding-switching-to</a></p>
  1166. </div>
  1167. <div class="comment-actions">
  1168. <ul class="comment-actions-secondary">
  1169. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634733#comment-349634733" id="comment-permalink-349634733"><span>Permalink</span></a></li>
  1170. </ul>
  1171. <ul class="comment-actions-primary">
  1172. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 06, 2013 15:14" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634733#comment-349634733"><span>May 06, 2013</span></a></li>
  1173. </ul>
  1174. </div>
  1175. </div>
  1176. </div>
  1177. <!--
  1178. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1179. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1180. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1181. <rdf:Description
  1182. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634733#comment-349634733"
  1183. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=349634733#comment-349634733"
  1184. dc:title="OAuth on Bitbucket"
  1185. trackback:ping="https://confluence.atlassian.com/rpc/trackback/349634733"/>
  1186. </rdf:RDF>
  1187. -->
  1188. <ol class="comment-threads">
  1189. <li id="comment-thread-352256263" class="comment-thread">
  1190. <div class="comment " id="comment-352256263">
  1191. <p class="comment-user-logo">
  1192. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1193. <div class="comment-header">
  1194. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1195. </div>
  1196. <div class="comment-body">
  1197. <div class="comment-content wiki-content">
  1198. <p>No that I know of; filing a ticket was the right way to go.</p>
  1199. </div>
  1200. <div class="comment-actions">
  1201. <ul class="comment-actions-secondary">
  1202. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256263#comment-352256263" id="comment-permalink-352256263"><span>Permalink</span></a></li>
  1203. </ul>
  1204. <ul class="comment-actions-primary">
  1205. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 10, 2013 19:28" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256263#comment-352256263"><span>May 10, 2013</span></a></li>
  1206. </ul>
  1207. </div>
  1208. </div>
  1209. </div>
  1210. <!--
  1211. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1212. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1213. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1214. <rdf:Description
  1215. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256263#comment-352256263"
  1216. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256263#comment-352256263"
  1217. dc:title="OAuth on Bitbucket"
  1218. trackback:ping="https://confluence.atlassian.com/rpc/trackback/352256263"/>
  1219. </rdf:RDF>
  1220. -->
  1221. <ol class="comment-threads">
  1222. <li id="comment-thread-352256321" class="comment-thread">
  1223. <div class="comment odd" id="comment-352256321">
  1224. <p class="comment-user-logo">
  1225. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: gabipetrovay" title="gabipetrovay"> </p>
  1226. <div class="comment-header">
  1227. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Egabipetrovay" class="url fn">Gabriel Petrovay</a></h4>
  1228. </div>
  1229. <div class="comment-body">
  1230. <div class="comment-content wiki-content">
  1231. <p><a class="external-link" href="https://bitbucket.org/evzijst" style="text-decoration: underline;" rel="nofollow">Erik van Zijst</a>&nbsp;said inside the issue above to open an issue "<span>so others can find it and vote for it.</span>" What did he mean?</p>
  1232. </div>
  1233. <div class="comment-actions">
  1234. <ul class="comment-actions-secondary">
  1235. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256321#comment-352256321" id="comment-permalink-352256321"><span>Permalink</span></a></li>
  1236. </ul>
  1237. <ul class="comment-actions-primary">
  1238. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 10, 2013 20:45" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256321#comment-352256321"><span>May 10, 2013</span></a></li>
  1239. </ul>
  1240. </div>
  1241. </div>
  1242. </div>
  1243. <!--
  1244. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1245. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1246. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1247. <rdf:Description
  1248. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256321#comment-352256321"
  1249. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256321#comment-352256321"
  1250. dc:title="OAuth on Bitbucket"
  1251. trackback:ping="https://confluence.atlassian.com/rpc/trackback/352256321"/>
  1252. </rdf:RDF>
  1253. -->
  1254. <ol class="comment-threads">
  1255. <li id="comment-thread-352256325" class="comment-thread">
  1256. <div class="comment " id="comment-352256325">
  1257. <p class="comment-user-logo">
  1258. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1259. <div class="comment-header">
  1260. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1261. </div>
  1262. <div class="comment-body">
  1263. <div class="comment-content wiki-content">
  1264. <p>When you create an issue, other people can
  1265. watch it. &nbsp;A user watching an issue is our equivalent to voting
  1266. something up. &nbsp;Users can search our issues database and find issues
  1267. related to their questions/suggestions.</p>
  1268. </div>
  1269. <div class="comment-actions">
  1270. <ul class="comment-actions-secondary">
  1271. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256325#comment-352256325" id="comment-permalink-352256325"><span>Permalink</span></a></li>
  1272. </ul>
  1273. <ul class="comment-actions-primary">
  1274. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 10, 2013 20:52" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256325#comment-352256325"><span>May 10, 2013</span></a></li>
  1275. </ul>
  1276. </div>
  1277. </div>
  1278. </div>
  1279. <!--
  1280. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1281. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1282. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1283. <rdf:Description
  1284. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256325#comment-352256325"
  1285. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256325#comment-352256325"
  1286. dc:title="OAuth on Bitbucket"
  1287. trackback:ping="https://confluence.atlassian.com/rpc/trackback/352256325"/>
  1288. </rdf:RDF>
  1289. -->
  1290. </li>
  1291. </ol>
  1292. </li>
  1293. </ol>
  1294. </li>
  1295. </ol>
  1296. </li>
  1297. <li id="comment-thread-351110009" class="comment-thread">
  1298. <div class="comment odd" id="comment-351110009">
  1299. <p class="comment-user-logo">
  1300. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: gabipetrovay" title="gabipetrovay"> </p>
  1301. <div class="comment-header">
  1302. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Egabipetrovay" class="url fn">Gabriel Petrovay</a></h4>
  1303. </div>
  1304. <div class="comment-body">
  1305. <div class="comment-content wiki-content">
  1306. <p>Typo:</p><p><span style="font-size: 16.0px;line-height: 1.5625;">Step 2. Request a<span style="color: rgb(255,0,0);"><s><strong>n</strong></s></span> request token from Bitbucket</span></p><p><span style="font-size: 16.0px;line-height: 1.5625;">(2 times: both on the summary and in the text)</span></p>
  1307. </div>
  1308. <div class="comment-actions">
  1309. <ul class="comment-actions-secondary">
  1310. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110009#comment-351110009" id="comment-permalink-351110009"><span>Permalink</span></a></li>
  1311. </ul>
  1312. <ul class="comment-actions-primary">
  1313. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 09, 2013 10:11" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110009#comment-351110009"><span>May 09, 2013</span></a></li>
  1314. </ul>
  1315. </div>
  1316. </div>
  1317. </div>
  1318. <!--
  1319. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1320. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1321. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1322. <rdf:Description
  1323. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110009#comment-351110009"
  1324. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110009#comment-351110009"
  1325. dc:title="OAuth on Bitbucket"
  1326. trackback:ping="https://confluence.atlassian.com/rpc/trackback/351110009"/>
  1327. </rdf:RDF>
  1328. -->
  1329. <ol class="comment-threads">
  1330. <li id="comment-thread-352256327" class="comment-thread">
  1331. <div class="comment " id="comment-352256327">
  1332. <p class="comment-user-logo">
  1333. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1334. <div class="comment-header">
  1335. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1336. </div>
  1337. <div class="comment-body">
  1338. <div class="comment-content wiki-content">
  1339. <p>Fixed. &nbsp;Thanks for the catch.</p>
  1340. </div>
  1341. <div class="comment-actions">
  1342. <ul class="comment-actions-secondary">
  1343. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256327#comment-352256327" id="comment-permalink-352256327"><span>Permalink</span></a></li>
  1344. </ul>
  1345. <ul class="comment-actions-primary">
  1346. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 10, 2013 20:53" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256327#comment-352256327"><span>May 10, 2013</span></a></li>
  1347. </ul>
  1348. </div>
  1349. </div>
  1350. </div>
  1351. <!--
  1352. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1353. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1354. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1355. <rdf:Description
  1356. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256327#comment-352256327"
  1357. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256327#comment-352256327"
  1358. dc:title="OAuth on Bitbucket"
  1359. trackback:ping="https://confluence.atlassian.com/rpc/trackback/352256327"/>
  1360. </rdf:RDF>
  1361. -->
  1362. </li>
  1363. </ol>
  1364. </li>
  1365. <li id="comment-thread-351110020" class="comment-thread">
  1366. <div class="comment odd" id="comment-351110020">
  1367. <p class="comment-user-logo">
  1368. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: gabipetrovay" title="gabipetrovay"> </p>
  1369. <div class="comment-header">
  1370. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Egabipetrovay" class="url fn">Gabriel Petrovay</a></h4>
  1371. </div>
  1372. <div class="comment-body">
  1373. <div class="comment-content wiki-content">
  1374. <p>Can you please provide an example the the end of this article showing how to use the obtained access token.</p><p>Right
  1375. after you say: "With this access token your application can make
  1376. Bitbucket API calls.". Or maybe give us a link to an example (oauth.org,
  1377. etc.)</p><p>The "OAuth Consumer Examples" is not low-level enough. The
  1378. oauth.net is all about Oauth version 2 (that's why the question above). I
  1379. don't know what to do with:</p><pre>oauth_token_secret=aH9bzCKjKT5uXWueeENr9LKNh2jyyUVj&amp;oauth_token=NqFQPmgsa4QQ9StW2R</pre><p>Do they go in the request URL's or are they request headers?<br>Does casing matter if headers?<br>Are there any other steps required other then attaching them as query parameters/headers?</p><p>Thanks for help!</p>
  1380. </div>
  1381. <div class="comment-actions">
  1382. <ul class="comment-actions-secondary">
  1383. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110020#comment-351110020" id="comment-permalink-351110020"><span>Permalink</span></a></li>
  1384. </ul>
  1385. <ul class="comment-actions-primary">
  1386. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 09, 2013 10:32" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110020#comment-351110020"><span>May 09, 2013</span></a></li>
  1387. </ul>
  1388. </div>
  1389. </div>
  1390. </div>
  1391. <!--
  1392. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1393. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1394. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1395. <rdf:Description
  1396. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110020#comment-351110020"
  1397. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=351110020#comment-351110020"
  1398. dc:title="OAuth on Bitbucket"
  1399. trackback:ping="https://confluence.atlassian.com/rpc/trackback/351110020"/>
  1400. </rdf:RDF>
  1401. -->
  1402. </li>
  1403. <li id="comment-thread-352256330" class="comment-thread">
  1404. <div class="comment " id="comment-352256330">
  1405. <p class="comment-user-logo">
  1406. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1407. <div class="comment-header">
  1408. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1409. </div>
  1410. <div class="comment-body">
  1411. <div class="comment-content wiki-content">
  1412. <p>Gabriel,&nbsp;</p><p>At the moment, our only example is&nbsp;<a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+consumer+examples">OAuth Consumer Examples</a>.
  1413. &nbsp;What you want is a more detailed client and you might be able to
  1414. find one in the existing repositories. &nbsp;Just search here for
  1415. bitbucket:</p><p><a href="https://bitbucket.org/repo/all/" class="external-link" rel="nofollow">https://bitbucket.org/repo/all/</a></p><p>We'll add a more detailed tutorial when time allows.</p><p>Mary</p>
  1416. </div>
  1417. <div class="comment-actions">
  1418. <ul class="comment-actions-secondary">
  1419. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256330#comment-352256330" id="comment-permalink-352256330"><span>Permalink</span></a></li>
  1420. </ul>
  1421. <ul class="comment-actions-primary">
  1422. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 10, 2013 21:00" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256330#comment-352256330"><span>May 10, 2013</span></a></li>
  1423. </ul>
  1424. </div>
  1425. </div>
  1426. </div>
  1427. <!--
  1428. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1429. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1430. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1431. <rdf:Description
  1432. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256330#comment-352256330"
  1433. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=352256330#comment-352256330"
  1434. dc:title="OAuth on Bitbucket"
  1435. trackback:ping="https://confluence.atlassian.com/rpc/trackback/352256330"/>
  1436. </rdf:RDF>
  1437. -->
  1438. </li>
  1439. <li id="comment-thread-360677495" class="comment-thread">
  1440. <div class="comment odd" id="comment-360677495">
  1441. <p class="comment-user-logo">
  1442. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  1443. <div class="comment-header">
  1444. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  1445. </div>
  1446. <div class="comment-body">
  1447. <div class="comment-content wiki-content">
  1448. <p>Hi,</p><p>I am able to validate user and call
  1449. the API when the user authorizes from bitbucket page. What values
  1450. should I save for future API call by the application on a regular
  1451. interval (or based on git hook)? I see the authorization is saved on
  1452. bitbucket page- not sure how to use that. I tried to use rtoken, rsecret
  1453. and oauth_verifier from the first request but did not work (Provider
  1454. returned: Invalid OAuth verifier.).</p><p>&nbsp;</p><p>Thanks,<br>Maruf</p>
  1455. </div>
  1456. <div class="comment-actions">
  1457. <ul class="comment-actions-secondary">
  1458. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=360677495#comment-360677495" id="comment-permalink-360677495"><span>Permalink</span></a></li>
  1459. </ul>
  1460. <ul class="comment-actions-primary">
  1461. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 26, 2013 20:41" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=360677495#comment-360677495"><span>May 26, 2013</span></a></li>
  1462. </ul>
  1463. </div>
  1464. </div>
  1465. </div>
  1466. <!--
  1467. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1468. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1469. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1470. <rdf:Description
  1471. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=360677495#comment-360677495"
  1472. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=360677495#comment-360677495"
  1473. dc:title="OAuth on Bitbucket"
  1474. trackback:ping="https://confluence.atlassian.com/rpc/trackback/360677495"/>
  1475. </rdf:RDF>
  1476. -->
  1477. <ol class="comment-threads">
  1478. <li id="comment-thread-361726231" class="comment-thread">
  1479. <div class="comment " id="comment-361726231">
  1480. <p class="comment-user-logo">
  1481. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1482. <div class="comment-header">
  1483. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1484. </div>
  1485. <div class="comment-body">
  1486. <div class="comment-content wiki-content">
  1487. <p>Maruf,</p><p>Did you look at our&nbsp;<a href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+consumer+examples">OAuth Consumer Examples</a> page? &nbsp;Depending on your experience, you may find an OAuth manual such as&nbsp;<a href="http://shop.oreilly.com/product/0636920021810.do" class="external-link" rel="nofollow">Getting Started with OAuthh 2.0</a> helpful.</p><p>Mary</p>
  1488. </div>
  1489. <div class="comment-actions">
  1490. <ul class="comment-actions-secondary">
  1491. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=361726231#comment-361726231" id="comment-permalink-361726231"><span>Permalink</span></a></li>
  1492. </ul>
  1493. <ul class="comment-actions-primary">
  1494. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="May 28, 2013 16:18" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=361726231#comment-361726231"><span>May 28, 2013</span></a></li>
  1495. </ul>
  1496. </div>
  1497. </div>
  1498. </div>
  1499. <!--
  1500. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1501. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1502. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1503. <rdf:Description
  1504. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=361726231#comment-361726231"
  1505. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=361726231#comment-361726231"
  1506. dc:title="OAuth on Bitbucket"
  1507. trackback:ping="https://confluence.atlassian.com/rpc/trackback/361726231"/>
  1508. </rdf:RDF>
  1509. -->
  1510. </li>
  1511. </ol>
  1512. </li>
  1513. <li id="comment-thread-375423122" class="comment-thread">
  1514. <div class="comment odd" id="comment-375423122">
  1515. <p class="comment-user-logo">
  1516. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  1517. <div class="comment-header">
  1518. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  1519. </div>
  1520. <div class="comment-body">
  1521. <div class="comment-content wiki-content">
  1522. <p>Hi,</p><p>I have a strange problem. I am able to get an access token. I construct a URL as below and replace %s with appropriate values.</p><p><a href="https://bitbucket.org/api/1.0/repositories/nasir/rasul/branches?oauth_token_secret=%s&amp;oauth_token=%s" class="external-link" rel="nofollow">https://bitbucket.org/api/1.0/repositories/nasir/rasul/branches?oauth_token_secret=%s&amp;oauth_token=%s</a></p><p>When I invoke an http request .get, I get Forbidden response.&nbsp;</p><p>If
  1523. I paste the same URL in the browser I get correct response. I am
  1524. absolutely stumped. Is there any other parameter bitbucket expects?</p><p>Thanks.</p><p>Nasir</p>
  1525. </div>
  1526. <div class="comment-actions">
  1527. <ul class="comment-actions-secondary">
  1528. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423122#comment-375423122" id="comment-permalink-375423122"><span>Permalink</span></a></li>
  1529. </ul>
  1530. <ul class="comment-actions-primary">
  1531. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jun 23, 2013 03:53" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423122#comment-375423122"><span>Jun 23, 2013</span></a></li>
  1532. </ul>
  1533. </div>
  1534. </div>
  1535. </div>
  1536. <!--
  1537. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1538. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1539. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1540. <rdf:Description
  1541. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423122#comment-375423122"
  1542. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423122#comment-375423122"
  1543. dc:title="OAuth on Bitbucket"
  1544. trackback:ping="https://confluence.atlassian.com/rpc/trackback/375423122"/>
  1545. </rdf:RDF>
  1546. -->
  1547. <ol class="comment-threads">
  1548. <li id="comment-thread-375423159" class="comment-thread">
  1549. <div class="comment " id="comment-375423159">
  1550. <p class="comment-user-logo">
  1551. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  1552. <div class="comment-header">
  1553. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  1554. </div>
  1555. <div class="comment-body">
  1556. <div class="comment-content wiki-content">
  1557. <p>solved it - using Scribe, one of the oauth
  1558. libraries. My problem was probably the signing the request before
  1559. accessing the resource.</p>
  1560. </div>
  1561. <div class="comment-actions">
  1562. <ul class="comment-actions-secondary">
  1563. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423159#comment-375423159" id="comment-permalink-375423159"><span>Permalink</span></a></li>
  1564. </ul>
  1565. <ul class="comment-actions-primary">
  1566. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jun 23, 2013 08:41" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423159#comment-375423159"><span>Jun 23, 2013</span></a></li>
  1567. </ul>
  1568. </div>
  1569. </div>
  1570. </div>
  1571. <!--
  1572. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1573. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1574. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1575. <rdf:Description
  1576. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423159#comment-375423159"
  1577. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=375423159#comment-375423159"
  1578. dc:title="OAuth on Bitbucket"
  1579. trackback:ping="https://confluence.atlassian.com/rpc/trackback/375423159"/>
  1580. </rdf:RDF>
  1581. -->
  1582. </li>
  1583. </ol>
  1584. </li>
  1585. <li id="comment-thread-381255908" class="comment-thread">
  1586. <div class="comment odd" id="comment-381255908">
  1587. <p class="comment-user-logo">
  1588. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: zeroone3010" title="zeroone3010"> </p>
  1589. <div class="comment-header">
  1590. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ezeroone3010" class="url fn">Ville Saalo</a></h4>
  1591. </div>
  1592. <div class="comment-body">
  1593. <div class="comment-content wiki-content">
  1594. <p>In Step 3, "Redirect the user to Bitbucket to
  1595. authorize your application", is it possible to get a mobile-optimized
  1596. login page? It makes for a really bad user experience when the large
  1597. desktop layout is crammed into a small smartphone screen. The user must
  1598. zoom in and scroll around just to be able to log in.&nbsp;<img class="emoticon emoticon-sad" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/sad.png" data-emoticon-name="sad" alt="(sad)"></p><p>Edit: I've created an issue about this:&nbsp;<a href="https://bitbucket.org/site/master/issue/7744/oauth-login-page-to-support-mobile" class="external-link" rel="nofollow">https://bitbucket.org/site/master/issue/7744/oauth-login-page-to-support-mobile</a></p>
  1599. </div>
  1600. <div class="comment-actions">
  1601. <ul class="comment-actions-secondary">
  1602. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=381255908#comment-381255908" id="comment-permalink-381255908"><span>Permalink</span></a></li>
  1603. </ul>
  1604. <ul class="comment-actions-primary">
  1605. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jul 11, 2013 00:39" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=381255908#comment-381255908"><span>Jul 11, 2013</span></a></li>
  1606. </ul>
  1607. </div>
  1608. </div>
  1609. </div>
  1610. <!--
  1611. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1612. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1613. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1614. <rdf:Description
  1615. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=381255908#comment-381255908"
  1616. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=381255908#comment-381255908"
  1617. dc:title="OAuth on Bitbucket"
  1618. trackback:ping="https://confluence.atlassian.com/rpc/trackback/381255908"/>
  1619. </rdf:RDF>
  1620. -->
  1621. </li>
  1622. <li id="comment-thread-389780749" class="comment-thread">
  1623. <div class="comment " id="comment-389780749">
  1624. <p class="comment-user-logo">
  1625. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  1626. <div class="comment-header">
  1627. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  1628. </div>
  1629. <div class="comment-body">
  1630. <div class="comment-content wiki-content">
  1631. <p>hi,</p><p>I'm looking for advice really - i
  1632. want to grab meta data from my private repository to show on my main
  1633. website meta such as bug tracking info and issues-tracking info. oAuth
  1634. sounds like what i want but having never used it i don't know. Is oAuth
  1635. the way to go or can i make calls form my php scripts without it. I
  1636. would like to use xml or json format etc. My Site visitors will not use
  1637. the end-point - it will only be my scripts on my website making calls to
  1638. my bitbucket repository</p><p>&nbsp;</p><p>thanks in advance</p>
  1639. </div>
  1640. <div class="comment-actions">
  1641. <ul class="comment-actions-secondary">
  1642. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780749#comment-389780749" id="comment-permalink-389780749"><span>Permalink</span></a></li>
  1643. </ul>
  1644. <ul class="comment-actions-primary">
  1645. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 07, 2013 15:38" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780749#comment-389780749"><span>Aug 07, 2013</span></a></li>
  1646. </ul>
  1647. </div>
  1648. </div>
  1649. </div>
  1650. <!--
  1651. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1652. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1653. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1654. <rdf:Description
  1655. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780749#comment-389780749"
  1656. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780749#comment-389780749"
  1657. dc:title="OAuth on Bitbucket"
  1658. trackback:ping="https://confluence.atlassian.com/rpc/trackback/389780749"/>
  1659. </rdf:RDF>
  1660. -->
  1661. <ol class="comment-threads">
  1662. <li id="comment-thread-389780799" class="comment-thread">
  1663. <div class="comment odd" id="comment-389780799">
  1664. <p class="comment-user-logo">
  1665. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1666. <div class="comment-header">
  1667. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1668. </div>
  1669. <div class="comment-body">
  1670. <div class="comment-content wiki-content">
  1671. <p>You know, there are lots of ways you can go
  1672. about this. &nbsp;You could, for example, use scripts to construct that
  1673. data locally and push it out a website. &nbsp;If you used scripts you
  1674. could use a deploy key to pull the data. &nbsp;You could use a build
  1675. tool or a crontab type job to run these. &nbsp;Any such solution would
  1676. not require OAuth. &nbsp;OAuth is more if you want to write software to
  1677. access other user's data.</p>
  1678. </div>
  1679. <div class="comment-actions">
  1680. <ul class="comment-actions-secondary">
  1681. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780799#comment-389780799" id="comment-permalink-389780799"><span>Permalink</span></a></li>
  1682. </ul>
  1683. <ul class="comment-actions-primary">
  1684. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 07, 2013 16:49" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780799#comment-389780799"><span>Aug 07, 2013</span></a></li>
  1685. </ul>
  1686. </div>
  1687. </div>
  1688. </div>
  1689. <!--
  1690. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1691. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1692. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1693. <rdf:Description
  1694. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780799#comment-389780799"
  1695. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780799#comment-389780799"
  1696. dc:title="OAuth on Bitbucket"
  1697. trackback:ping="https://confluence.atlassian.com/rpc/trackback/389780799"/>
  1698. </rdf:RDF>
  1699. -->
  1700. <ol class="comment-threads">
  1701. <li id="comment-thread-389780837" class="comment-thread">
  1702. <div class="comment " id="comment-389780837">
  1703. <p class="comment-user-logo">
  1704. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: nejavu" title="nejavu"> </p>
  1705. <div class="comment-header">
  1706. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Enejavu" class="url fn">anilee</a></h4>
  1707. </div>
  1708. <div class="comment-body">
  1709. <div class="comment-content wiki-content">
  1710. <p>hi, (just created an account),</p><p>Ok, so
  1711. use a script on my local machine and access the raw data from&nbsp;the
  1712. .git directory in my local project directory?&nbsp; and push to my site
  1713. so im bypassing bitbucket really?</p><p>I really like the history info and tracking info shown in GIT GUI's,&nbsp; sourcetree and SmartGit.</p>
  1714. </div>
  1715. <div class="comment-actions">
  1716. <ul class="comment-actions-secondary">
  1717. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780837#comment-389780837" id="comment-permalink-389780837"><span>Permalink</span></a></li>
  1718. </ul>
  1719. <ul class="comment-actions-primary">
  1720. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 07, 2013 17:59" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780837#comment-389780837"><span>Aug 07, 2013</span></a></li>
  1721. </ul>
  1722. </div>
  1723. </div>
  1724. </div>
  1725. <!--
  1726. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1727. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1728. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1729. <rdf:Description
  1730. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780837#comment-389780837"
  1731. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780837#comment-389780837"
  1732. dc:title="OAuth on Bitbucket"
  1733. trackback:ping="https://confluence.atlassian.com/rpc/trackback/389780837"/>
  1734. </rdf:RDF>
  1735. -->
  1736. <ol class="comment-threads">
  1737. <li id="comment-thread-389780872" class="comment-thread">
  1738. <div class="comment odd" id="comment-389780872">
  1739. <p class="comment-user-logo">
  1740. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1741. <div class="comment-header">
  1742. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1743. </div>
  1744. <div class="comment-body">
  1745. <div class="comment-content wiki-content">
  1746. <p>Essentially, if you are accessing <u>your own account data</u>
  1747. you don't really need OAuth. You can use another means to authenticate
  1748. to Bitbucket. If that data is something you can get from your local
  1749. repository fine. If it is something you want via REST, you can use Basic
  1750. Auth as you know your username / password.</p>
  1751. </div>
  1752. <div class="comment-actions">
  1753. <ul class="comment-actions-secondary">
  1754. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780872#comment-389780872" id="comment-permalink-389780872"><span>Permalink</span></a></li>
  1755. </ul>
  1756. <ul class="comment-actions-primary">
  1757. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 07, 2013 18:41" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780872#comment-389780872"><span>Aug 07, 2013</span></a></li>
  1758. </ul>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. <!--
  1763. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1764. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1765. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1766. <rdf:Description
  1767. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780872#comment-389780872"
  1768. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780872#comment-389780872"
  1769. dc:title="OAuth on Bitbucket"
  1770. trackback:ping="https://confluence.atlassian.com/rpc/trackback/389780872"/>
  1771. </rdf:RDF>
  1772. -->
  1773. <ol class="comment-threads">
  1774. <li id="comment-thread-389780963" class="comment-thread">
  1775. <div class="comment " id="comment-389780963">
  1776. <p class="comment-user-logo">
  1777. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: nejavu" title="nejavu"> </p>
  1778. <div class="comment-header">
  1779. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Enejavu" class="url fn">anilee</a></h4>
  1780. </div>
  1781. <div class="comment-body">
  1782. <div class="comment-content wiki-content">
  1783. <p>yes, just read one of your previous activities <strong>'<a href="https://confluence.atlassian.com/display/BITBUCKET/Use+the+Bitbucket+REST+APIs" title="Bitbucket" rel="nofollow">Use the Bitbucket REST APIs</a>'</strong> - its exactly what i was looking for - wish i'd seen this first.</p><p>Thanks</p><p>&nbsp;</p><p>&nbsp;</p>
  1784. </div>
  1785. <div class="comment-actions">
  1786. <ul class="comment-actions-secondary">
  1787. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780963#comment-389780963" id="comment-permalink-389780963"><span>Permalink</span></a></li>
  1788. </ul>
  1789. <ul class="comment-actions-primary">
  1790. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 07, 2013 21:15" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780963#comment-389780963"><span>Aug 07, 2013</span></a></li>
  1791. </ul>
  1792. </div>
  1793. </div>
  1794. </div>
  1795. <!--
  1796. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1797. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1798. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1799. <rdf:Description
  1800. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780963#comment-389780963"
  1801. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=389780963#comment-389780963"
  1802. dc:title="OAuth on Bitbucket"
  1803. trackback:ping="https://confluence.atlassian.com/rpc/trackback/389780963"/>
  1804. </rdf:RDF>
  1805. -->
  1806. </li>
  1807. </ol>
  1808. </li>
  1809. </ol>
  1810. </li>
  1811. </ol>
  1812. </li>
  1813. </ol>
  1814. </li>
  1815. <li id="comment-thread-390498012" class="comment-thread">
  1816. <div class="comment odd" id="comment-390498012">
  1817. <p class="comment-user-logo">
  1818. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: p0wer" title="p0wer"> </p>
  1819. <div class="comment-header">
  1820. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ep0wer" class="url fn">z38</a></h4>
  1821. </div>
  1822. <div class="comment-body">
  1823. <div class="comment-content wiki-content">
  1824. <p>Hi,</p><p>is there any special reason for using an exclamation point in some of the URLs (e.g. /!api/)?</p><p>Thanks!</p>
  1825. </div>
  1826. <div class="comment-actions">
  1827. <ul class="comment-actions-secondary">
  1828. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=390498012#comment-390498012" id="comment-permalink-390498012"><span>Permalink</span></a></li>
  1829. </ul>
  1830. <ul class="comment-actions-primary">
  1831. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 11, 2013 17:01" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=390498012#comment-390498012"><span>Aug 11, 2013</span></a></li>
  1832. </ul>
  1833. </div>
  1834. </div>
  1835. </div>
  1836. <!--
  1837. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1838. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1839. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1840. <rdf:Description
  1841. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=390498012#comment-390498012"
  1842. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=390498012#comment-390498012"
  1843. dc:title="OAuth on Bitbucket"
  1844. trackback:ping="https://confluence.atlassian.com/rpc/trackback/390498012"/>
  1845. </rdf:RDF>
  1846. -->
  1847. <ol class="comment-threads">
  1848. <li id="comment-thread-391086451" class="comment-thread">
  1849. <div class="comment " id="comment-391086451">
  1850. <p class="comment-user-logo">
  1851. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1852. <div class="comment-header">
  1853. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1854. </div>
  1855. <div class="comment-body">
  1856. <div class="comment-content wiki-content">
  1857. <p>That is just another way to reach the same API. I need to clean that up. &nbsp;Which page did you see it on?</p>
  1858. </div>
  1859. <div class="comment-actions">
  1860. <ul class="comment-actions-secondary">
  1861. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086451#comment-391086451" id="comment-permalink-391086451"><span>Permalink</span></a></li>
  1862. </ul>
  1863. <ul class="comment-actions-primary">
  1864. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 12, 2013 15:53" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086451#comment-391086451"><span>Aug 12, 2013</span></a></li>
  1865. </ul>
  1866. </div>
  1867. </div>
  1868. </div>
  1869. <!--
  1870. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1871. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1872. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1873. <rdf:Description
  1874. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086451#comment-391086451"
  1875. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086451#comment-391086451"
  1876. dc:title="OAuth on Bitbucket"
  1877. trackback:ping="https://confluence.atlassian.com/rpc/trackback/391086451"/>
  1878. </rdf:RDF>
  1879. -->
  1880. <ol class="comment-threads">
  1881. <li id="comment-thread-391086473" class="comment-thread">
  1882. <div class="comment odd" id="comment-391086473">
  1883. <p class="comment-user-logo">
  1884. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: p0wer" title="p0wer"> </p>
  1885. <div class="comment-header">
  1886. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ep0wer" class="url fn">z38</a></h4>
  1887. </div>
  1888. <div class="comment-body">
  1889. <div class="comment-content wiki-content">
  1890. <p>I think it occurs 4 times (once in step 2 and 4 and two times in step 3). Thank you for clarifying it!</p>
  1891. </div>
  1892. <div class="comment-actions">
  1893. <ul class="comment-actions-secondary">
  1894. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086473#comment-391086473" id="comment-permalink-391086473"><span>Permalink</span></a></li>
  1895. </ul>
  1896. <ul class="comment-actions-primary">
  1897. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 12, 2013 16:26" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086473#comment-391086473"><span>Aug 12, 2013</span></a></li>
  1898. </ul>
  1899. </div>
  1900. </div>
  1901. </div>
  1902. <!--
  1903. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1904. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1905. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1906. <rdf:Description
  1907. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086473#comment-391086473"
  1908. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391086473#comment-391086473"
  1909. dc:title="OAuth on Bitbucket"
  1910. trackback:ping="https://confluence.atlassian.com/rpc/trackback/391086473"/>
  1911. </rdf:RDF>
  1912. -->
  1913. <ol class="comment-threads">
  1914. <li id="comment-thread-391088097" class="comment-thread">
  1915. <div class="comment " id="comment-391088097">
  1916. <p class="comment-user-logo">
  1917. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: manthony" title="manthony"> </p>
  1918. <div class="comment-header">
  1919. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Emanthony" class="url fn">manthony</a></h4>
  1920. </div>
  1921. <div class="comment-body">
  1922. <div class="comment-content wiki-content">
  1923. <p>Took care of it. Thanks for the catch.</p>
  1924. </div>
  1925. <div class="comment-actions">
  1926. <ul class="comment-actions-secondary">
  1927. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391088097#comment-391088097" id="comment-permalink-391088097"><span>Permalink</span></a></li>
  1928. </ul>
  1929. <ul class="comment-actions-primary">
  1930. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 13, 2013 21:33" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391088097#comment-391088097"><span>Aug 13, 2013</span></a></li>
  1931. </ul>
  1932. </div>
  1933. </div>
  1934. </div>
  1935. <!--
  1936. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1937. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1938. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1939. <rdf:Description
  1940. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391088097#comment-391088097"
  1941. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=391088097#comment-391088097"
  1942. dc:title="OAuth on Bitbucket"
  1943. trackback:ping="https://confluence.atlassian.com/rpc/trackback/391088097"/>
  1944. </rdf:RDF>
  1945. -->
  1946. </li>
  1947. </ol>
  1948. </li>
  1949. </ol>
  1950. </li>
  1951. </ol>
  1952. </li>
  1953. <li id="comment-thread-427623323" class="comment-thread">
  1954. <div class="comment odd" id="comment-427623323">
  1955. <p class="comment-user-logo">
  1956. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: allan.chau" title="allan.chau"> </p>
  1957. <div class="comment-header">
  1958. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Eallan.chau" class="url fn">Allan Chau</a></h4>
  1959. </div>
  1960. <div class="comment-body">
  1961. <div class="comment-content wiki-content">
  1962. <p>There seems to be a lack of iOS libraries
  1963. supporting ARC so I decided to implement the OAuth protocol myself.
  1964. Although I couldn't find it specified anywhere, when using the
  1965. recommended HTML headers and HMAC-SHA1 you will need to double encode
  1966. the callback URL AND include the Host header.</p>
  1967. </div>
  1968. <div class="comment-actions">
  1969. <ul class="comment-actions-secondary">
  1970. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=427623323#comment-427623323" id="comment-permalink-427623323"><span>Permalink</span></a></li>
  1971. </ul>
  1972. <ul class="comment-actions-primary">
  1973. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Nov 27, 2013 23:07" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=427623323#comment-427623323"><span>Nov 27, 2013</span></a></li>
  1974. </ul>
  1975. </div>
  1976. </div>
  1977. </div>
  1978. <!--
  1979. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  1980. xmlns:dc="http://purl.org/dc/elements/1.1/"
  1981. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  1982. <rdf:Description
  1983. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=427623323#comment-427623323"
  1984. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=427623323#comment-427623323"
  1985. dc:title="OAuth on Bitbucket"
  1986. trackback:ping="https://confluence.atlassian.com/rpc/trackback/427623323"/>
  1987. </rdf:RDF>
  1988. -->
  1989. </li>
  1990. <li id="comment-thread-442270118" class="comment-thread">
  1991. <div class="comment " id="comment-442270118">
  1992. <p class="comment-user-logo">
  1993. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: " title=""> </p>
  1994. <div class="comment-header">
  1995. <h4 class="author"> <span class="anonymous-user">Anonymous</span></h4>
  1996. </div>
  1997. <div class="comment-body">
  1998. <div class="comment-content wiki-content">
  1999. <p>every time when i want send a request to&nbsp;<a href="https://bitbucket.org/api/1.0/oauth/access_token" class="external-link" rel="nofollow">https://bitbucket.org/api/1.0/oauth/access_token</a></p><p>i get&nbsp;<span style="color: rgb(0,0,0);">Could not verify OAuth request.</span></p><p><span style="color: rgb(0,0,0);">&nbsp;</span><span style="color: rgb(0,0,0);">whats going on here? -.-</span></p>
  2000. </div>
  2001. <div class="comment-actions">
  2002. <ul class="comment-actions-secondary">
  2003. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270118#comment-442270118" id="comment-permalink-442270118"><span>Permalink</span></a></li>
  2004. </ul>
  2005. <ul class="comment-actions-primary">
  2006. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jan 31, 2014 00:39" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270118#comment-442270118"><span>Jan 31, 2014</span></a></li>
  2007. </ul>
  2008. </div>
  2009. </div>
  2010. </div>
  2011. <!--
  2012. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2013. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2014. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2015. <rdf:Description
  2016. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270118#comment-442270118"
  2017. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270118#comment-442270118"
  2018. dc:title="OAuth on Bitbucket"
  2019. trackback:ping="https://confluence.atlassian.com/rpc/trackback/442270118"/>
  2020. </rdf:RDF>
  2021. -->
  2022. <ol class="comment-threads">
  2023. <li id="comment-thread-442270133" class="comment-thread">
  2024. <div class="comment odd" id="comment-442270133">
  2025. <p class="comment-user-logo">
  2026. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: mbertrand" title="mbertrand"> </p>
  2027. <div class="comment-header">
  2028. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Embertrand" class="url fn">Marcus Bertrand [Atlassian]</a></h4>
  2029. </div>
  2030. <div class="comment-body">
  2031. <div class="comment-content wiki-content">
  2032. <p>If you're having issues, please come to support and include&nbsp;<em>all&nbsp;</em>headers with this request so we can help you. Also, try checking out the examples on this page.</p>
  2033. </div>
  2034. <div class="comment-actions">
  2035. <ul class="comment-actions-secondary">
  2036. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270133#comment-442270133" id="comment-permalink-442270133"><span>Permalink</span></a></li>
  2037. </ul>
  2038. <ul class="comment-actions-primary">
  2039. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jan 31, 2014 01:06" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270133#comment-442270133"><span>Jan 31, 2014</span></a></li>
  2040. </ul>
  2041. </div>
  2042. </div>
  2043. </div>
  2044. <!--
  2045. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2046. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2047. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2048. <rdf:Description
  2049. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270133#comment-442270133"
  2050. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=442270133#comment-442270133"
  2051. dc:title="OAuth on Bitbucket"
  2052. trackback:ping="https://confluence.atlassian.com/rpc/trackback/442270133"/>
  2053. </rdf:RDF>
  2054. -->
  2055. </li>
  2056. </ol>
  2057. </li>
  2058. <li id="comment-thread-449904980" class="comment-thread">
  2059. <div class="comment " id="comment-449904980">
  2060. <p class="comment-user-logo">
  2061. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: cartrege" title="cartrege"> </p>
  2062. <div class="comment-header">
  2063. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ecartrege" class="url fn">Alexander Serdcev</a></h4>
  2064. </div>
  2065. <div class="comment-body">
  2066. <div class="comment-content wiki-content">
  2067. <p>Hello!</p><p>Once the user has connected application, how can I find out his username, so I could semi list of its repository?</p><p>Here: <br><a href="https://confluence.atlassian.com/display/BITBUCKET/users+Endpoint#usersEndpoint-GETtheuser" rel="nofollow">https://confluence.atlassian.com/display/BITBUCKET/users+Endpoint#usersEndpoint-GETtheuser'srepositories</a></p><p>said that I should already know the username of the user. How can I get it after the user connects the application?</p>
  2068. </div>
  2069. <div class="comment-actions">
  2070. <ul class="comment-actions-secondary">
  2071. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904980#comment-449904980" id="comment-permalink-449904980"><span>Permalink</span></a></li>
  2072. </ul>
  2073. <ul class="comment-actions-primary">
  2074. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Feb 15, 2014 10:50" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904980#comment-449904980"><span>Feb 15, 2014</span></a></li>
  2075. </ul>
  2076. </div>
  2077. </div>
  2078. </div>
  2079. <!--
  2080. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2081. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2082. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2083. <rdf:Description
  2084. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904980#comment-449904980"
  2085. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904980#comment-449904980"
  2086. dc:title="OAuth on Bitbucket"
  2087. trackback:ping="https://confluence.atlassian.com/rpc/trackback/449904980"/>
  2088. </rdf:RDF>
  2089. -->
  2090. <ol class="comment-threads">
  2091. <li id="comment-thread-449904984" class="comment-thread">
  2092. <div class="comment odd" id="comment-449904984">
  2093. <p class="comment-user-logo">
  2094. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: allan.chau" title="allan.chau"> </p>
  2095. <div class="comment-header">
  2096. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Eallan.chau" class="url fn">Allan Chau</a></h4>
  2097. </div>
  2098. <div class="comment-body">
  2099. <div class="comment-content wiki-content">
  2100. <p>I have the same problem, you should be using the following:</p><p><span style="line-height: 1.6666666;">GET&nbsp;</span><a href="https://bitbucket.org/api/1.0/user" style="line-height: 1.6666666;" class="external-link" rel="nofollow">https://bitbucket.org/api/1.0/user</a></p><p>However, it didn't work for me.</p>
  2101. </div>
  2102. <div class="comment-actions">
  2103. <ul class="comment-actions-secondary">
  2104. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904984#comment-449904984" id="comment-permalink-449904984"><span>Permalink</span></a></li>
  2105. </ul>
  2106. <ul class="comment-actions-primary">
  2107. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Feb 15, 2014 11:03" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904984#comment-449904984"><span>Feb 15, 2014</span></a></li>
  2108. </ul>
  2109. </div>
  2110. </div>
  2111. </div>
  2112. <!--
  2113. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2114. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2115. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2116. <rdf:Description
  2117. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904984#comment-449904984"
  2118. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=449904984#comment-449904984"
  2119. dc:title="OAuth on Bitbucket"
  2120. trackback:ping="https://confluence.atlassian.com/rpc/trackback/449904984"/>
  2121. </rdf:RDF>
  2122. -->
  2123. </li>
  2124. </ol>
  2125. </li>
  2126. <li id="comment-thread-622985612" class="comment-thread">
  2127. <div class="comment " id="comment-622985612">
  2128. <p class="comment-user-logo">
  2129. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: krosenberg" title="krosenberg"> </p>
  2130. <div class="comment-header">
  2131. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ekrosenberg" class="url fn">Keith Rosenberg</a></h4>
  2132. </div>
  2133. <div class="comment-body">
  2134. <div class="comment-content wiki-content">
  2135. <p>Is there any way to get a personal access token (OAuth) like you can on Github?&nbsp;<a href="https://github.com/settings/applications#personal-access-tokens" class="external-link" rel="nofollow">https://github.com/settings/applications#personal-access-tokens</a></p><p>I am trying to setup Bitbucket with .netrc without having to actually store my password in text. See&nbsp;<a href="https://github.com/component/guide/blob/master/component/getting-started.md#configuring-bitbucket-access" class="external-link" rel="nofollow">https://github.com/component/guide/blob/master/component/getting-started.md#configuring-bitbucket-access</a></p>
  2136. </div>
  2137. <div class="comment-actions">
  2138. <ul class="comment-actions-secondary">
  2139. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=622985612#comment-622985612" id="comment-permalink-622985612"><span>Permalink</span></a></li>
  2140. </ul>
  2141. <ul class="comment-actions-primary">
  2142. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Jul 01, 2014 13:55" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=622985612#comment-622985612"><span>Jul 01, 2014</span></a></li>
  2143. </ul>
  2144. </div>
  2145. </div>
  2146. </div>
  2147. <!--
  2148. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2149. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2150. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2151. <rdf:Description
  2152. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=622985612#comment-622985612"
  2153. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=622985612#comment-622985612"
  2154. dc:title="OAuth on Bitbucket"
  2155. trackback:ping="https://confluence.atlassian.com/rpc/trackback/622985612"/>
  2156. </rdf:RDF>
  2157. -->
  2158. </li>
  2159. <li id="comment-thread-648218187" class="comment-thread">
  2160. <div class="comment odd" id="comment-648218187">
  2161. <p class="comment-user-logo">
  2162. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: dietervds" title="dietervds"> </p>
  2163. <div class="comment-header">
  2164. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Edietervds" class="url fn">dietervds</a></h4>
  2165. </div>
  2166. <div class="comment-body">
  2167. <div class="comment-content wiki-content">
  2168. <p>I struggled for a while on exactly how I had to do a request to the Bitbucket API once I had the access token.</p><p>If
  2169. you're using PHP, this is what worked perfectly for me: Install Guzzle
  2170. (v4 at time of writing) with composer, and install the Guzzle OAuth
  2171. Subscriber&nbsp;plugin. Fill in what you need, and you're good to go.
  2172. You can find the plugin and usage example here:&nbsp;<a href="https://github.com/guzzle/oauth-subscriber" class="external-link" rel="nofollow">https://github.com/guzzle/oauth-subscriber</a></p>
  2173. </div>
  2174. <div class="comment-actions">
  2175. <ul class="comment-actions-secondary">
  2176. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=648218187#comment-648218187" id="comment-permalink-648218187"><span>Permalink</span></a></li>
  2177. </ul>
  2178. <ul class="comment-actions-primary">
  2179. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Aug 14, 2014 07:29" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=648218187#comment-648218187"><span>Aug 14, 2014</span></a></li>
  2180. </ul>
  2181. </div>
  2182. </div>
  2183. </div>
  2184. <!--
  2185. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2186. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2187. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2188. <rdf:Description
  2189. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=648218187#comment-648218187"
  2190. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=648218187#comment-648218187"
  2191. dc:title="OAuth on Bitbucket"
  2192. trackback:ping="https://confluence.atlassian.com/rpc/trackback/648218187"/>
  2193. </rdf:RDF>
  2194. -->
  2195. </li>
  2196. <li id="comment-thread-687220518" class="comment-thread">
  2197. <div class="comment " id="comment-687220518">
  2198. <p class="comment-user-logo">
  2199. <img class="userLogo logo anonymous" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/anonymous.png" alt="User icon: kazssym" title="kazssym"> </p>
  2200. <div class="comment-header">
  2201. <h4 class="author"> <a href="https://confluence.atlassian.com/display/%7Ekazssym" class="url fn">Kaz Nishimura</a></h4>
  2202. </div>
  2203. <div class="comment-body">
  2204. <div class="comment-content wiki-content">
  2205. <p>Is there any way to force re-authentication
  2206. of any already logged-in user in OAuth sign-in? It seems some cookies
  2207. identifying the user are remembered and I cannot make users switch their
  2208. accounts even if I throw away the old access token.</p><p>If you cal tell which cookie is identifying a user, I can try to delete it on the client side.</p>
  2209. </div>
  2210. <div class="comment-actions">
  2211. <ul class="comment-actions-secondary">
  2212. <li class="first comment-permalink"><a title="Permanent link to this comment" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=687220518#comment-687220518" id="comment-permalink-687220518"><span>Permalink</span></a></li>
  2213. </ul>
  2214. <ul class="comment-actions-primary">
  2215. <li style="display: none;" class="comment-action-like"><span class="like-summary"></span></li><li class="first comment-date"><a title="Nov 27, 2014 04:29" href="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=687220518#comment-687220518"><span>Nov 27, 2014</span></a></li>
  2216. </ul>
  2217. </div>
  2218. </div>
  2219. </div>
  2220. <!--
  2221. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  2222. xmlns:dc="http://purl.org/dc/elements/1.1/"
  2223. xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  2224. <rdf:Description
  2225. rdf:about="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=687220518#comment-687220518"
  2226. dc:identifier="https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket?focusedCommentId=687220518#comment-687220518"
  2227. dc:title="OAuth on Bitbucket"
  2228. trackback:ping="https://confluence.atlassian.com/rpc/trackback/687220518"/>
  2229. </rdf:RDF>
  2230. -->
  2231. </li>
  2232. </ol>
  2233. <div class="bottom-comment-panels comment-panels">
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. <div id="theme-footer">
  2239. <div class="sectionColumnWrapper"><div class="sectionMacro"><div class="sectionMacroRow"><div class="columnMacro" style="width:212px;min-width:212px;max-width:212px;"><p><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/spacer.png" data-image-src="/download/attachments/221449496/spacer.png?version=1&amp;modificationDate=1280299220337&amp;api=v2"><br> <a href="mailto:support@bitbucket.org" class="external-link" rel="nofollow"><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/btn_support.png" data-image-src="/download/attachments/221449496/btn_support.png?version=2&amp;modificationDate=1344998522481&amp;api=v2"></a><br> Log a <a href="mailto:support@bitbucket.org" class="external-link" rel="nofollow">request</a> with our support team.</p></div><div class="columnMacro" style="width:212px;min-width:212px;max-width:212px;"><p><br> <a href="https://bitbucket.org/site/master/issues/" class="external-link" rel="nofollow"><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/btn_bug.png" data-image-src="/download/attachments/221449496/btn_bug.png?version=2&amp;modificationDate=1344998515396&amp;api=v2"></a><br> Search for an <a href="https://bitbucket.org/site/master/issues/" class="external-link" rel="nofollow">issue</a>, or create one if none exists.</p></div><div class="columnMacro" style="width:212px;min-width:212px;max-width:212px;"><p><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/spacer.png" data-image-src="/download/attachments/221449496/spacer.png?version=1&amp;modificationDate=1280299220337&amp;api=v2"><br> <a href="http://answers.atlassian.com/tags/bitbucket/" class="external-link" rel="nofollow"><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/btn_answers.png" data-image-src="/download/attachments/221449496/btn_answers.png?version=1&amp;modificationDate=1344998511159&amp;api=v2"></a><a href="http://groups.google.com/group/bitbucket-users" class="external-link" rel="nofollow"><br> See </a><a href="http://answers.atlassian.com/tags/bitbucket/" class="external-link" rel="nofollow">answers</a><a href="http://answers.atlassian.com/tags/bitbucket/" class="external-link" rel="nofollow"> from the community.</a></p></div><div class="columnMacro" style="width:212px;min-width:212px;max-width:212px;"><p><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/spacer.png" data-image-src="/download/attachments/221449496/spacer.png?version=1&amp;modificationDate=1280299220337&amp;api=v2"><br> <a href="https://confluence.atlassian.com/display/BITBUCKET/Contributing+to+the+Bitbucket+Documentation"><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/btn_docs.png" data-image-src="/download/attachments/221449496/btn_docs.png?version=2&amp;modificationDate=1344998519314&amp;api=v2"></a><br> <a href="https://confluence.atlassian.com/display/BITBUCKET/Contributing+to+the+Bitbucket+Documentation">Tweet, blog and update</a> our documentation.</p></div></div></div></div>
  2240. <div class="sectionColumnWrapper"><div class="sectionMacro"><div class="sectionMacroRow"><div class="columnMacro" style="width:900px;min-width:900px;max-width:900px;"><p style="text-align: center;">&nbsp;</p><p style="text-align: center;"><a href="http://creativecommons.org/licenses/by/2.5/au/" class="external-link" rel="nofollow"><img class="confluence-embedded-image" src="OAuth%20on%20Bitbucket%20-%20Bitbucket%20-%20Atlassian%20Documentation_pliki/ico_cc.png" data-image-src="/download/attachments/180295777/ico_cc.png?version=1&amp;modificationDate=1256506275108&amp;api=v2"></a> Except where otherwise noted, content in this space is licensed under a <a href="http://creativecommons.org/licenses/by/2.5/au/" class="external-link" rel="nofollow">Creative Commons Attribution 2.5 Australia License</a>.</p><p style="text-align: center;">&nbsp;</p></div></div></div></div>
  2241. </div>
  2242. </div>
  2243. </div>
  2244. <div id="footer" role="contentinfo">
  2245. <section class="footer-body">
  2246. <div class="gliffy-webpanel-footer"><span></span></div>
  2247. <ul id="poweredby">
  2248. <li class="noprint">Powered by <a href="http://www.atlassian.com/software/confluence" class="hover-footer-link">Atlassian Confluence</a> <span id="footer-build-information">5.6.4</span><span id="footer-cluster-node-id">(cluster node: d6e9a7d8)</span>, <a href="http://www.atlassian.com/software/confluence/overview/team-collaboration-software?utm_source=confluence-footer" class="hover-footer-link">Team Collaboration Software</a></li>
  2249. <li class="print-only">Printed by Atlassian Confluence 5.6.4, Team Collaboration Software.</li>
  2250. <li class="noprint"><a href="https://jira.atlassian.com/browse/CONF" class="hover-footer-link">Report a bug</a></li>
  2251. <li class="noprint"><a href="http://www.atlassian.com/about/connected.jsp?s_kwcid=Confluence-stayintouch" class="hover-footer-link">Atlassian News</a></li>
  2252. <li class="noprint">node3</li><li></li></ul>
  2253. <div id="footer-logo"><a href="http://www.atlassian.com/">Atlassian</a></div>
  2254. <!-- Google Analytics statistic tracking for CAC - do not remove, EVER! Team-WTF. And always test on QA-CAC. Team-Brian-andPer -->
  2255. <script type="text/javascript">
  2256. var _gaq = _gaq || [];
  2257. _gaq.push(['_setAccount', 'UA-6032469-8']);
  2258. _gaq.push(['_setDomainName', '.atlassian.com']);
  2259. _gaq.push(['_trackPageview']);
  2260. _gaq.push(['devrel._setAccount', 'UA-6032469-39']);
  2261. _gaq.push(['devrel._setDomainName', '.atlassian.com']);
  2262. _gaq.push(['devrel._trackPageview']);
  2263. _gaq.push(['demandgen._setAccount', 'UA-6032469-23']);
  2264. _gaq.push(['demandgen._setDomainName', '.atlassian.com']);
  2265. _gaq.push(['demandgen._trackPageview']);
  2266. (function() {
  2267. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  2268. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  2269. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  2270. })();
  2271. /* ADM-19936: GA tracking for attachment downloads */
  2272. jQuery(function ($) {
  2273. $("a[href^='/download/attachments/']").each(function () {
  2274. var $link = $(this);
  2275. $link.click(function() {
  2276. _gaq.push(['_trackPageview', $link.attr('href')]);
  2277. });
  2278. });
  2279. });
  2280. /* ADM-26328: Add Google Analytics tracking to expand macro */
  2281. AJS.toInit(function($) {
  2282. var openedOnce = false;
  2283. var pageID = AJS.Meta.get("page-id");
  2284. //send an Asynchronous trackEvent when expand-control is expanded and only on the first expand.
  2285. //syntax is: _gaq.push(['_trackEvent', 'category', 'action', 'opt_label','opt_value','opt_noninteraction']);
  2286. $(".expand-control").bind("click",function() {
  2287. if (!$('.expand-control-icon', this).hasClass('expanded')) {
  2288. return;
  2289. } else if (openedOnce == false) {
  2290. var exactElement = AJS.$(this).children(".expand-control-text").html();
  2291. _gaq.push(['_trackEvent', 'ExpandTracker - Expand', pageID, exactElement]);
  2292. openedOnce = true;
  2293. }
  2294. });
  2295. });
  2296. </script>
  2297. <script type="text/javascript">AJS.$("#poweredby").append("<li class='noprint'>" + (getCookie("JSESSIONID") != null ? new RegExp("node\\d").exec(getCookie("JSESSIONID")) : "") + "<li>");</script>
  2298. </section>
  2299. </div>
  2300. </div>
  2301. <div id="fancybox-tmp"></div><div id="fancybox-loading"><div></div></div><div id="fancybox-overlay"></div><div id="fancybox-wrap"><div id="fancybox-outer"><div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div><div id="fancybox-content"></div><a id="fancybox-close"></a><div id="fancybox-title"></div><a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a><a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a></div></div><div style="display: none;" id="content-hover-shadow"><div class="tl"></div><div class="tr"></div><div class="l"></div><div class="r"></div><div class="bl"></div><div class="br"></div><div class="b"></div></div><div style="position: relative; z-index: 0;" id="fileuploadShim"></div><div class="plupload html5" style="position: absolute; background: none repeat scroll 0% 0% transparent; width: 1353px; height: 0px; overflow: hidden; z-index: -1; opacity: 0; top: 621px; left: 0px;" id="p19aqokro01pv317761ll617brqsm0_html5_container"><input id="p19aqokro01pv317761ll617brqsm0_html5" style="font-size: 999px; position: absolute; width: 100%; height: 100%;" accept="" multiple="multiple" type="file"></div><div id="cw-notification-container"></div></body></html>