text: (window.webpackJsonp=window.webpackJsonp||[]).push([[26],{123:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return m}));var r=n(0),a=n.n(r);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 c(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=a.a.createContext({}),p=function(e){var t=a.a.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):s(s({},t),e)),n},u=function(e){var t=p(e.components);return a.a.createElement(l.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},b=a.a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,l=i(e,["components","mdxType","originalType","parentName"]),u=p(n),b=r,m=u["".concat(c,".").concat(b)]||u[b]||d[b]||o;return n?a.a.createElement(m,s(s({ref:t},l),{},{components:n})):a.a.createElement(m,s({ref:t},l))}));function m(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,c=new Array(o);c[0]=b;var s={};for(var i in t)hasOwnProperty.call(t,i)&&(s[i]=t[i]);s.originalType=e,s.mdxType="string"==typeof e?e:r,c[1]=s;for(var l=2;l<o;l++)c[l]=n[l];return a.a.createElement.apply(null,c)}return a.a.createElement.apply(null,n)}b.displayName="MDXCreateElement"},144:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/pat-create-11cfd3931071434d0fbb8c0a790192c2.png"},145:function(e,t,n){"use strict";n.r(t),t.default=n.p+"assets/images/pat-ready-44f96995109b29c34f57644961e18cb2.png"},97:function(e,t,n){"use strict";n.r(t),n.d(t,"frontMatter",(function(){return c})),n.d(t,"metadata",(function(){return s})),n.d(t,"toc",(function(){return i})),n.d(t,"default",(function(){return p}));var r=n(3),a=n(8),o=(n(0),n(123)),c={id:"create-personal-access-token",title:"Create And Use Personal Access Tokens"},s={unversionedId:"guides/create-personal-access-token",id:"guides/create-personal-access-token",isDocsHomePage:!1,title:"Create And Use Personal Access Tokens",description:'Head over to the "Personal Access Tokens" page and click on the plus symbol to',source:"@site/docs/guides/create-personal-access-token.mdx",sourceDirName:"guides",slug:"/guides/create-personal-access-token",permalink:"/docs/guides/create-personal-access-token",editUrl:"https://github.com/ory/docs/edit/master/docs/docs/guides/create-personal-access-token.mdx",version:"current",lastUpdatedBy:"Vincent",lastUpdatedAt:1623141266,formattedLastUpdatedAt:"6/8/2021",frontMatter:{id:"create-personal-access-token",title:"Create And Use Personal Access Tokens"},sidebar:"docs",previous:{title:"Bring your own UI",permalink:"/docs/guides/bring-your-user-interface"},next:{title:"Ory Projects",permalink:"/docs/concepts/project"}},i=[],l={toc:i};function p(e){var t=e.components,c=Object(a.a)(e,["components"]);return Object(o.b)("wrapper",Object(r.a)({},l,c,{components:t,mdxType:"MDXLayout"}),Object(o.b)("p",null,'Head over to the "Personal Access Tokens" page and click on the plus symbol to\ncreate a new token.'),Object(o.b)("p",null,Object(o.b)("img",{alt:"CreatePersonal Access Token",src:n(144).default})),Object(o.b)("p",null,"Choose a name that helps to remember what the token is used for or who is using\nit."),Object(o.b)("p",null,"Once created, a dialog will appear on the bottom left containing your personal\naccess token."),Object(o.b)("p",null,"Copy this into a password manager or another safe place."),Object(o.b)("div",{className:"admonition admonition-info alert alert--info"},Object(o.b)("div",{parentName:"div",className:"admonition-heading"},Object(o.b)("h5",{parentName:"div"},Object(o.b)("span",{parentName:"h5",className:"admonition-icon"},Object(o.b)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},Object(o.b)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"info")),Object(o.b)("div",{parentName:"div",className:"admonition-content"},Object(o.b)("p",{parentName:"div"},"The token will only be displayed once! If you lose it, you will need to create a\nnew token. :::"),Object(o.b)("p",{parentName:"div"},Object(o.b)("img",{alt:"CreatePersonal Access Token",src:n(145).default})),Object(o.b)("p",{parentName:"div"},"Now you can use the token, for example by exporting it into your local\nenvironment."),Object(o.b)("p",{parentName:"div"},"Open a terminal and copy set the ",Object(o.b)("inlineCode",{parentName:"p"},"ORY_ACCESS_TOKEN")," env var to your Personal\nAccess Token:"),Object(o.b)("pre",{parentName:"div"},Object(o.b)("code",{parentName:"pre",className:"language-shell"},"export ORY_ACCESS_TOKEN=yOuRpErsOnAlaCceSsToKeNgOeShErE\n")))))}p.isMDXComponent=!0}}]);