You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-06-25 00:47:17 +02:00
1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
"use strict";(self.webpackChunkdocusaurus=self.webpackChunkdocusaurus||[]).push([[2599],{3905:function(e,t,n){n.d(t,{Zo:function(){return s},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),l=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},s=function(e){var t=l(e.components);return r.createElement(u.Provider,{value:t},e.children)},p="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,s=c(e,["components","mdxType","originalType","parentName"]),p=l(n),f=o,m=p["".concat(u,".").concat(f)]||p[f]||d[f]||i;return n?r.createElement(m,a(a({ref:t},s),{},{components:n})):r.createElement(m,a({ref:t},s))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=f;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c[p]="string"==typeof e?e:o,a[1]=c;for(var l=2;l<i;l++)a[l]=n[l];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},5037:function(e,t,n){n.r(t),n.d(t,{assets:function(){return s},contentTitle:function(){return u},default:function(){return m},frontMatter:function(){return c},metadata:function(){return l},toc:function(){return p}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),a=["components"],c={id:"bitbucket",title:"BitBucket"},u=void 0,l={unversionedId:"configuration/providers/bitbucket",id:"configuration/providers/bitbucket",title:"BitBucket",description:"1. Add a new OAuth consumer",source:"@site/docs/configuration/providers/bitbucket.md",sourceDirName:"configuration/providers",slug:"/configuration/providers/bitbucket",permalink:"/oauth2-proxy/docs/next/configuration/providers/bitbucket",draft:!1,editUrl:"https://github.com/oauth2-proxy/oauth2-proxy/edit/master/docs/docs/configuration/providers/bitbucket.md",tags:[],version:"current",frontMatter:{id:"bitbucket",title:"BitBucket"},sidebar:"docs",previous:{title:"DigitalOcean",permalink:"/oauth2-proxy/docs/next/configuration/providers/digitalocean"},next:{title:"Session Storage",permalink:"/oauth2-proxy/docs/next/configuration/session_storage"}},s={},p=[],d={toc:p},f="wrapper";function m(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)(f,(0,r.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("ol",null,(0,i.kt)("li",{parentName:"ol"},(0,i.kt)("a",{parentName:"li",href:"https://confluence.atlassian.com/bitbucket/oauth-on-bitbucket-cloud-238027431.html"},"Add a new OAuth consumer"),(0,i.kt)("ul",{parentName:"li"},(0,i.kt)("li",{parentName:"ul"},'In "Callback URL" use ',(0,i.kt)("inlineCode",{parentName:"li"},"https://<oauth2-proxy>/oauth2/callback"),", substituting ",(0,i.kt)("inlineCode",{parentName:"li"},"<oauth2-proxy>")," with the actual\nhostname that oauth2-proxy is running on."),(0,i.kt)("li",{parentName:"ul"},"In Permissions section select:",(0,i.kt)("ul",{parentName:"li"},(0,i.kt)("li",{parentName:"ul"},"Account -> Email"),(0,i.kt)("li",{parentName:"ul"},"Team membership -> Read"),(0,i.kt)("li",{parentName:"ul"},"Repositories -> Read"))))),(0,i.kt)("li",{parentName:"ol"},"Note the Client ID and Client Secret.")),(0,i.kt)("p",null,"To use the provider, pass the following options:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre"}," --provider=bitbucket\n --client-id=<Client ID>\n --client-secret=<Client Secret>\n")),(0,i.kt)("p",null,"The default configuration allows everyone with Bitbucket account to authenticate. To restrict the access to the team\nmembers use additional configuration option: ",(0,i.kt)("inlineCode",{parentName:"p"},"--bitbucket-team=<Team name>"),". To restrict the access to only these users\nwho have access to one selected repository use ",(0,i.kt)("inlineCode",{parentName:"p"},"--bitbucket-repository=<Repository name>"),"."))}m.isMDXComponent=!0}}]); |