请求用户身份验证(浏览器打开)

GET {{base_url}}/authen/v1/index?redirect_uri={{REDIRECT_URI}}&app_id={{app_id}}&state={{STATE}}

!!!!注意!!!!
这个接口请从操作系统浏览器中打开,选择账号,点击授权,跳转到目标页面之后,从浏览器的地址栏中获取到当前用户的code;

Request Params

KeyDatatypeRequiredDescription
redirect_uristring
app_idstring
statestring

RESPONSES

status: OK

"\u003c!doctype html\u003e\u003chtml lang=\"zh-CN\"\u003e\u003chead\u003e\u003cmeta name=\"suite-passport-compile-at\" content=\"2021-08-11 12:04:20.010\"\u003e\u003cmeta name=\"suite-passport-commit-id\" content=\"63028bc06900095eef9bbcc23d7e489b3799f65d\"\u003e\u003cmeta name=\"suite-passport-branch\" content=\"release/2021-08-11\"\u003e\u003cmeta name=\"suite-passport-build-version\" content=\"1.0.0.1401\"\u003e\u003cmeta charset=\"UTF-8\"\u003e\u003cmeta name=\"ROBOTS\" content=\"NOINDEX,NOFOLLOW\"\u003e\u003ctitle\u003e\u003c/title\u003e\u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\"\u003e\u003cmeta name=\"renderer\" content=\"webkit\"\u003e\u003cmeta name=\"format-detection\" content=\"telephone=no\"\u003e\u003cmeta name=\"apple-mobile-web-app-capable\" content=\"yes\"\u003e\u003cmeta name=\"format-detection\" content=\"email=no\"\u003e\u003cmeta name=\"msapplication-tap-highlight\" content=\"no\"\u003e\u003cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no\"\u003e\u003cmeta name=\"referrer\" content=\"origin\"\u003e\u003clink href=\"//s0.pstatp.com\" rel=\"preconnect\" crossorigin\u003e\u003clink rel=\"dns-prefetch\" href=\"//s0.pstatp.com\"\u003e\u003clink href=\"//i.snssdk.com\" rel=\"preconnect\" crossorigin\u003e\u003clink rel=\"dns-prefetch\" href=\"//i.snssdk.com\"\u003e\u003clink rel=\"shortcut icon\" href=\"https://p6-hera.byteimg.com/tos-cn-i-jbbdkfciu3/f3de430ed2b64f90a95fb8a393dfa6bd~tplv-jbbdkfciu3-image:0:0.image\"\u003e\u003cstyle\u003ehtml{height:100%}.global-loading{height:180px;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.global-loading img{width:180px;height:180px}@media (max-width:568px){.global-loading{height:2.52rem}.global-loading img{width:2.52rem;height:2.52rem}}\u003c/style\u003e\u003cscript\u003e\n\n  window.__pageStartTime = new Date().getTime();\n  window.deviceInfoBySSO = {\n      appId: '',\n      loginAppId: '',\n      deviceId: '',\n      deviceModel: '',\n      deviceName: '',\n      deviceOs: ''\n  };\n  window.ENV = 'online'\n  window.locales = [\"en-US\",\"ja-JP\",\"zh-CN\"]\n  window.needRedirect = ''\n  window.crossLoginUrl = ''\n  window.redirectUrl = ''\n  window.passport_web_did = '6997996014045020161'\n  window.rootDomain = 'feishu.cn'\n  window.serverInjectRes = {\"ENV\":\"online\",\"biz_code\":0,\"captcha_service_url\":\"https://internal-api.feishu.cn/\",\"code\":0,\"customization\":{},\"data\":{\"token\":\"959jbf63-9a98-49b0-bc43-499066bd1d8e\",\"app_name\":\"hello-world\",\"app_i18n\":{\"default\":\"hello-world\",\"zh-CN\":\"hello-world\",\"en-US\":\"hello-world\",\"ja-JP\":\"hello-world\"}},\"forceAccountLogin\":false,\"fv3basedir\":\"/goofy/ee/suite/passport/\",\"fv3cdn\":\"https://sf3-scmcdn-cn.feishucdn.com\",\"isKA\":false,\"isPrivateKA\":false,\"locales\":[\"en-US\",\"ja-JP\",\"zh-CN\"],\"message\":\"ok\",\"passport_service_url\":\"https://internal-api-lark-api.feishu.cn/\",\"passport_web_did\":6997996014045020161,\"rootDomain\":\"feishu.cn\",\"unit\":\"eu_nc\"}\n  \n  window.isKA =  false \n  window.isPrivateKA =  false  \n  window.unit = 'eu_nc';\n  window.KAConfig = {\n      channel: '',\n      entranceText:  null \n  }\n  window.forceAccountLogin =  false \n  if (typeof(window.serverInjectRes) !== 'object') {\n      window.serverInjectRes = null;\n  }\n\n  \n  window.template =  null \n\u003c/script\u003e\u003cscript\u003efunction getCookie(e){var t=document.cookie.match(new RegExp(\"(?:^|; )\"+e.replace(/([\\.$?*|{}\\(\\)\\[\\]\\\\\\/\\+^])/g,\"\\\\$1\")+\"=([^;]*)\"));return t?decodeURIComponent(t[1]):void 0}if(function(){function e(e){return this.config=e,this}e.prototype={reset:function(){var e=Math.min(document.documentElement.clientWidth,750)/750*100;e=Math.min(e,70);var t=1;(function(){try{if(\"undefined\"!=typeof window\u0026\u0026window\u0026\u0026window.navigator)return/ipad/gi.test(window.navigator.userAgent)||Boolean(navigator.maxTouchPoints)\u0026\u00262\u003cnavigator.maxTouchPoints\u0026\u0026/MacIntel/.test(navigator.platform)}catch(e){}return!1})()\u0026\u0026function(){try{return~window.navigator.userAgent.toLowerCase().indexOf(\"lark\")}catch(e){}return!1}()\u0026\u0026(t=1.35),document.documentElement.style.fontSize=e*t+\"px\";var n=e/parseFloat(window.getComputedStyle(document.documentElement).fontSize);1!==n\u0026\u0026(document.documentElement.style.fontSize=e*n+\"px\")}},window.Adapter=new e,window.Adapter.reset(),window.onload=function(){window.Adapter.reset()},window.onresize=function(){window.Adapter.reset()}}(),window.fetch){var options={credentials:\"same-origin\",headers:{\"X-Locale\":getCookie(\"locale\")}},timestamp=(new Date).getTime(),handler=function(e){return e.ok?e.json():(console.error(\"xhr prefetch failed: \"+e.url),null)};window.fetchCache={config:fetch(\"/suite/passport/v3/config?_t=\"+timestamp,options).then(handler)}}else window.fetchCache={}\u003c/script\u003e\u003cscript\u003ewindow.isSSO=!1,window.brand=\"feishu\",window.isServerBrandLark=!1,function(e,r,n,o,t,a,s){(e.SlardarMonitorObject=t,e[t]=e[t]||function(){(e[t].q=e[t].q||[]).push(arguments)},e[t].l=1*new Date,a=r.createElement(n),s=r.getElementsByTagName(n)[0],a.async=1,a.src=o,a.crossOrigin=\"anonymous\",s.parentNode.insertBefore(a,s),e[t].globalPreCollectError=function(){e[t](\"precollect\",\"error\",arguments)},\"function\"==typeof e.addEventListener\u0026\u0026e.addEventListener(\"error\",e[t].globalPreCollectError,!0),\"PerformanceLongTaskTiming\"in e)\u0026\u0026((o=e[t].lt={e:[]}).o=new PerformanceObserver(function(e){o.e=o.e.concat(e.getEntries())}),o.o.observe({entryTypes:[\"longtask\"]}))}(window,document,\"script\",\"https://i.snssdk.com/slardar/sdk.js?bid=suite_admin_passport\",\"Slardar\"),window.dataLayer=window.dataLayer||[]\u003c/script\u003e\u003cnoscript\u003e\u003cimg style=\"display:none\" src=\"https://px.ads.linkedin.com/collect/?pid=827235\u0026fmt=gif\"\u003e\u003c/noscript\u003e\u003cmeta name=\"AppPublic\" content=\"https://sf3-scmcdn-cn.feishucdn.com/goofy/ee/suite/passport/\"\u003e\u003clink href=\"https://sf3-scmcdn-cn.feishucdn.com/goofy/ee/suite/passport/static/login/css/page.b9ea1885.css\" rel=\"stylesheet\"\u003e\u003c/head\u003e\u003cbody class=\"isWeb\" style=\"-webkit-filter:none\"\u003e\u003cnoscript\u003e\u003ciframe src=\"https://www.googletagmanager.com/ns.html?id=GTM-NTSM7L8\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\"\u003e\u003c/iframe\u003e\u003c/noscript\u003e\u003cdiv id=\"root\"\u003e\u003cdiv class=\"global-loading\"\u003e\u003cimg src=\"https://s0.pstatp.com/ee/suite_passport_fe/static/v2/inland/img/loading.78e9e97a.gif\"\u003e\u003c/div\u003e\u003c/div\u003e\u003cscript src=\"https://sf3-scmcdn-cn.feishucdn.com/goofy/ee/suite/passport/static/login/js/vendor~page.login.2f1e4947.js\"\u003e\u003c/script\u003e\u003cscript src=\"https://sf3-scmcdn-cn.feishucdn.com/goofy/ee/suite/passport/static/login/js/login.32bff9e4.js\"\u003e\u003c/script\u003e\u003c/body\u003e\u003c/html\u003e\n"