"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=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=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/oauth2/callback"),", substituting ",(0,i.kt)("inlineCode",{parentName:"li"},"")," 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=\n --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="),". To restrict the access to only these users\nwho have access to one selected repository use ",(0,i.kt)("inlineCode",{parentName:"p"},"--bitbucket-repository="),"."))}m.isMDXComponent=!0}}]);