[{"data":1,"prerenderedAt":1014},["ShallowReactive",2],{"navigation":3,"\u002Fmodules\u002Fcallers":237,"\u002Fmodules\u002Fcallers-surround":1009},[4,43,119,127,211],{"title":5,"path":6,"stem":7,"children":8,"icon":42},"Get started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,12,17,22,27,32,37],{"title":10,"path":6,"stem":7,"icon":11},"Introduction","i-lucide-house",{"title":13,"path":14,"stem":15,"icon":16},"Install","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":18,"path":19,"stem":20,"icon":21},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start","i-lucide-play",{"title":23,"path":24,"stem":25,"icon":26},"Choose your setup","\u002Fgetting-started\u002Fchoose-a-sign-in-stack","1.getting-started\u002F4.choose-a-sign-in-stack","i-lucide-signpost",{"title":28,"path":29,"stem":30,"icon":31},"Browser clients","\u002Fgetting-started\u002Fbrowser-clients","1.getting-started\u002F5.browser-clients","i-lucide-globe",{"title":33,"path":34,"stem":35,"icon":36},"Coding agents","\u002Fgetting-started\u002Fai-agents","1.getting-started\u002F6.ai-agents","i-lucide-bot",{"title":38,"path":39,"stem":40,"icon":41},"Upgrade from 3.x","\u002Fgetting-started\u002Fupgrading-to-4","1.getting-started\u002F8.upgrading-to-4","i-lucide-arrow-up-right","i-lucide-rocket",{"title":44,"icon":45,"path":46,"stem":47,"children":48,"page":118},"Guides","i-lucide-waypoints","\u002Fguides","2.guides",[49,54,59,64,69,74,79,84,89,94,99,104,109,114],{"title":50,"path":51,"stem":52,"icon":53},"Register users","\u002Fguides\u002Fregistration","2.guides\u002F02.registration","i-lucide-user-plus",{"title":55,"path":56,"stem":57,"icon":58},"Sign users in","\u002Fguides\u002Fsign-in","2.guides\u002F03.sign-in","i-lucide-log-in",{"title":60,"path":61,"stem":62,"icon":63},"Sign users out","\u002Fguides\u002Fsign-out","2.guides\u002F04.sign-out","i-lucide-log-out",{"title":65,"path":66,"stem":67,"icon":68},"Two-factor auth","\u002Fguides\u002Ftwo-factor","2.guides\u002F05.two-factor","i-lucide-smartphone",{"title":70,"path":71,"stem":72,"icon":73},"Email-code sign-in","\u002Fguides\u002Femail-code","2.guides\u002F06.email-code","i-lucide-mail",{"title":75,"path":76,"stem":77,"icon":78},"Reset a password","\u002Fguides\u002Freset-password","2.guides\u002F07.reset-password","i-lucide-key-round",{"title":80,"path":81,"stem":82,"icon":83},"Manage account","\u002Fguides\u002Fmanage-account","2.guides\u002F08.manage-account","i-lucide-user-cog",{"title":85,"path":86,"stem":87,"icon":88},"Manage passkeys","\u002Fguides\u002Fmanage-passkeys","2.guides\u002F09.manage-passkeys","i-lucide-scan-face",{"title":90,"path":91,"stem":92,"icon":93},"Link accounts","\u002Fguides\u002Flink-external-accounts","2.guides\u002F10.link-external-accounts","i-lucide-link",{"title":95,"path":96,"stem":97,"icon":98},"Require step-up","\u002Fguides\u002Fstep-up","2.guides\u002F11.step-up","i-lucide-shield-check",{"title":100,"path":101,"stem":102,"icon":103},"No public sign-up","\u002Fguides\u002Finternal-app","2.guides\u002F12.internal-app","i-lucide-building-2",{"title":105,"path":106,"stem":107,"icon":108},"List and revoke signed-in sessions","\u002Fguides\u002Factive-sessions","2.guides\u002F13.active-sessions","i-lucide-monitor-smartphone",{"title":110,"path":111,"stem":112,"icon":113},"MCP server with OAuth","\u002Fguides\u002Fmcp-server-oauth","2.guides\u002F14.mcp-server-oauth","i-lucide-plug-zap",{"title":115,"path":116,"stem":117,"icon":103},"Host context on OAuth grants","\u002Fguides\u002Foauth-grant-context","2.guides\u002F15.oauth-grant-context",false,{"title":120,"path":121,"stem":122,"children":123,"icon":126},"Composables","\u002Fcomposables","3.composables\u002F1.index",[124],{"title":125,"path":121,"stem":122,"icon":126},"Build a custom stack","i-lucide-blocks",{"title":128,"icon":129,"path":130,"stem":131,"children":132,"page":118},"Reference","i-lucide-book-open","\u002Fmodules","4.modules",[133,138,142,147,151,156,161,166,170,175,179,184,188,193,198,202,206],{"title":134,"path":135,"stem":136,"icon":137},"Endpoint reference","\u002Fmodules\u002Fendpoints","4.modules\u002F01.endpoints","i-lucide-route",{"title":139,"path":140,"stem":141,"icon":78},"Password auth","\u002Fmodules\u002Fpassword-auth","4.modules\u002F02.password-auth",{"title":143,"path":144,"stem":145,"icon":146},"Composition table","\u002Fmodules\u002Fcomposition","4.modules\u002F03.composition","i-lucide-table",{"title":148,"path":149,"stem":150,"icon":83},"Identity module","\u002Fmodules\u002Fidentity-management","4.modules\u002F04.identity-management",{"title":152,"path":153,"stem":154,"icon":155},"Cookie sign-in","\u002Fmodules\u002Fcookie-auth","4.modules\u002F05.cookie-auth","i-lucide-cookie",{"title":157,"path":158,"stem":159,"icon":160},"Identity bearer","\u002Fmodules\u002Fbearer-auth","4.modules\u002F06.bearer-auth","i-lucide-key",{"title":162,"path":163,"stem":164,"icon":165},"JWT","\u002Fmodules\u002Fjwt","4.modules\u002F07.jwt","i-lucide-fingerprint",{"title":167,"path":168,"stem":169,"icon":88},"Passkeys","\u002Fmodules\u002Fpasskeys","4.modules\u002F08.passkeys",{"title":171,"path":172,"stem":173,"icon":174},"Step-up ReAuth","\u002Fmodules\u002Freauth","4.modules\u002F09.reauth","i-lucide-shield-alert",{"title":176,"path":177,"stem":178,"icon":58},"External OAuth","\u002Fmodules\u002Fexternal-oauth","4.modules\u002F10.external-oauth",{"title":180,"path":181,"stem":182,"icon":183},"Configuration","\u002Fmodules\u002Fconfiguration","4.modules\u002F11.configuration","i-lucide-settings",{"title":185,"path":186,"stem":187,"icon":98},"CSRF rules","\u002Fmodules\u002Fcsrf","4.modules\u002F12.csrf",{"title":189,"path":190,"stem":191,"icon":192},"Responses","\u002Fmodules\u002Ferrors","4.modules\u002F13.errors","i-lucide-circle-alert",{"title":194,"path":195,"stem":196,"icon":197},"Rate-limit policies","\u002Fmodules\u002Frate-limits","4.modules\u002F14.rate-limits","i-lucide-gauge",{"title":199,"path":200,"stem":201,"icon":73},"Email codes","\u002Fmodules\u002Femail-code","4.modules\u002F15.email-code",{"title":203,"path":204,"stem":205,"icon":78},"OAuth server","\u002Fmodules\u002Fopeniddict","4.modules\u002F16.openiddict",{"title":207,"path":208,"stem":209,"icon":210},"People and agents","\u002Fmodules\u002Fcallers","4.modules\u002F17.callers","i-lucide-user-check",{"title":212,"icon":213,"path":214,"stem":215,"children":216,"page":118},"Concepts","i-lucide-lightbulb","\u002Fconcepts","5.concepts",[217,222,227,232],{"title":218,"path":219,"stem":220,"icon":221},"Comparison","\u002Fconcepts\u002Fcompare","5.concepts\u002F1.compare","i-lucide-git-compare",{"title":223,"path":224,"stem":225,"icon":226},"Security model","\u002Fconcepts\u002Fsecurity-model","5.concepts\u002F2.security-model","i-lucide-shield",{"title":228,"path":229,"stem":230,"icon":231},"Production","\u002Fconcepts\u002Fproduction","5.concepts\u002F3.production","i-lucide-factory",{"title":233,"path":234,"stem":235,"icon":236},"FAQ","\u002Fconcepts\u002Ffaq","5.concepts\u002F4.faq","i-lucide-circle-help",{"id":238,"title":207,"body":239,"description":1002,"extension":1003,"faq":118,"links":1004,"meta":1005,"navigation":1006,"path":208,"seo":1007,"stem":209,"__hash__":1008},"docs\u002F4.modules\u002F17.callers.md",{"type":240,"value":241,"toc":996},"minimark",[242,246,251,263,317,351,369,375,379,562,576,580,586,708,720,724,727,918,978,992],[243,244,245],"p",{},"An app can be called by a person signed in with a cookie or a session token, by an AI agent or other client with an OAuth token the person granted, or by an API key. Some actions only a person should take directly: changing the password, 2FA, or passkeys, confirming their identity for a step-up, linking a sign-in, ending sessions, approving OAuth consent. AuthEndpoints gives every caller a kind, a policy that keeps a route for people, and an opt-in scheme that sends each credential to exactly one handler.",[247,248,250],"h2",{"id":249},"caller-kind","Caller kind",[243,252,253,254,258,259,262],{},"Read it with ",[255,256,257],"code",{},"User.GetCallerKind()",". The values are in ",[255,260,261],{},"CallerKinds",":",[264,265,266,279],"table",{},[267,268,269],"thead",{},[270,271,272,276],"tr",{},[273,274,275],"th",{},"Kind",[273,277,278],{},"Who",[280,281,282,293,307],"tbody",{},[270,283,284,290],{},[285,286,287],"td",{},[255,288,289],{},"person",[285,291,292],{},"The Identity application cookie, an Identity bearer token, or an AuthEndpoints JWT.",[270,294,295,300],{},[285,296,297],{},[255,298,299],{},"delegated",[285,301,302,303,306],{},"An OAuth access token from ",[255,304,305],{},"AuthEndpoints.OpenIddict",": a client acting for the person, or for a subject the person chose.",[270,308,309,314],{},[285,310,311],{},[255,312,313],{},"api_key",[285,315,316],{},"An API key.",[243,318,319,320,323,324,327,328,330,331,334,335,338,339,342,343,346,347,350],{},"The kind is the ",[255,321,322],{},"ae:caller"," claim (",[255,325,326],{},"CallerKinds.ClaimType",") on an identity. The built-in sign-in identities are recognized without it, by their authentication type, so cookies and tokens issued before this existed are people too; the claim is not written into them. ",[255,329,305],{}," adds ",[255,332,333],{},"ae:caller = delegated"," to every validated access token, and records the acting client in the RFC 8693 ",[255,336,337],{},"act"," claim, ",[255,340,341],{},"{\"client_id\":\"…\"}",", next to ",[255,344,345],{},"sub",". Read the client with ",[255,348,349],{},"User.GetActingClientId()",".",[243,352,353,354,356,357,360,361,364,365,368],{},"A host scheme sets ",[255,355,322],{}," on the identities it creates. An identity without it, from a scheme AuthEndpoints does not know, has no kind: ",[255,358,359],{},"GetCallerKind()"," returns ",[255,362,363],{},"null",". To add your own kinds (a service account, a support agent), set the claim from your principal hooks, such as an ",[255,366,367],{},"IUserClaimsPrincipalFactory\u003CTUser>"," or the authentication handler.",[243,370,371,372,374],{},"When a policy authenticates with more than one scheme and each succeeds, the principal holds an identity from each. Then any kind other than ",[255,373,289],{}," wins: a person's cookie sent with an agent's token never makes the token a person.",[247,376,378],{"id":377},"keep-a-route-for-people","Keep a route for people",[380,381,386],"pre",{"className":382,"code":383,"language":384,"meta":385,"style":385},"language-csharp shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","app.MapPost(\"\u002Fbilling\u002Fclose-account\", CloseAccount)\n    .RequireAuthorization(\"app\")      \u002F\u002F the route's own schemes\n    .RequireDirectPerson();           \u002F\u002F 403 for delegated tokens, API keys, and unknown kinds\n\nbuilder.Services.AddAuthorization(options => options.AddPolicy(\"people-only\", policy => policy\n    .AddAuthenticationSchemes(IdentityConstants.ApplicationScheme, OAuthServerServiceCollectionExtensions.ValidationScheme)\n    .RequireDirectPerson()));\n","csharp","",[255,387,388,425,449,463,470,522,552],{"__ignoreMap":385},[389,390,393,397,400,404,407,410,414,416,419,422],"span",{"class":391,"line":392},"line",1,[389,394,396],{"class":395},"sTEyZ","app",[389,398,350],{"class":399},"sMK4o",[389,401,403],{"class":402},"s2Zo4","MapPost",[389,405,406],{"class":399},"(",[389,408,409],{"class":399},"\"",[389,411,413],{"class":412},"sfazB","\u002Fbilling\u002Fclose-account",[389,415,409],{"class":399},[389,417,418],{"class":399},",",[389,420,421],{"class":395}," CloseAccount",[389,423,424],{"class":399},")\n",[389,426,428,431,434,436,438,440,442,445],{"class":391,"line":427},2,[389,429,430],{"class":399},"    .",[389,432,433],{"class":402},"RequireAuthorization",[389,435,406],{"class":399},[389,437,409],{"class":399},[389,439,396],{"class":412},[389,441,409],{"class":399},[389,443,444],{"class":399},")",[389,446,448],{"class":447},"sHwdD","      \u002F\u002F the route's own schemes\n",[389,450,452,454,457,460],{"class":391,"line":451},3,[389,453,430],{"class":399},[389,455,456],{"class":402},"RequireDirectPerson",[389,458,459],{"class":399},"();",[389,461,462],{"class":447},"           \u002F\u002F 403 for delegated tokens, API keys, and unknown kinds\n",[389,464,466],{"class":391,"line":465},4,[389,467,469],{"emptyLinePlaceholder":468},true,"\n",[389,471,473,476,478,481,483,486,488,492,495,498,500,503,505,507,510,512,514,517,519],{"class":391,"line":472},5,[389,474,475],{"class":395},"builder",[389,477,350],{"class":399},[389,479,480],{"class":395},"Services",[389,482,350],{"class":399},[389,484,485],{"class":402},"AddAuthorization",[389,487,406],{"class":399},[389,489,491],{"class":490},"sBMFI","options",[389,493,494],{"class":399}," =>",[389,496,497],{"class":395}," options",[389,499,350],{"class":399},[389,501,502],{"class":402},"AddPolicy",[389,504,406],{"class":399},[389,506,409],{"class":399},[389,508,509],{"class":412},"people-only",[389,511,409],{"class":399},[389,513,418],{"class":399},[389,515,516],{"class":490}," policy",[389,518,494],{"class":399},[389,520,521],{"class":395}," policy\n",[389,523,525,527,530,532,535,537,540,542,545,547,550],{"class":391,"line":524},6,[389,526,430],{"class":399},[389,528,529],{"class":402},"AddAuthenticationSchemes",[389,531,406],{"class":399},[389,533,534],{"class":395},"IdentityConstants",[389,536,350],{"class":399},[389,538,539],{"class":395},"ApplicationScheme",[389,541,418],{"class":399},[389,543,544],{"class":395}," OAuthServerServiceCollectionExtensions",[389,546,350],{"class":399},[389,548,549],{"class":395},"ValidationScheme",[389,551,424],{"class":399},[389,553,555,557,559],{"class":391,"line":554},7,[389,556,430],{"class":399},[389,558,456],{"class":402},[389,560,561],{"class":399},"()));\n",[243,563,564,567,568,571,572,575],{},[255,565,566],{},"RequireDirectPerson()"," (",[255,569,570],{},"DirectPersonRequirement",") passes when every authenticated identity is a person. A caller that authenticates as anything else gets ",[255,573,574],{},"403",". It names no authentication scheme, so pair it with the route's own.",[247,577,579],{"id":578},"built-in-routes-that-require-a-person","Built-in routes that require a person",[243,581,582,585],{},[255,583,584],{},"RequireAuthEndpointsUser()"," authenticates with the application cookie, Identity bearer, and JWT bearer schemes that are registered, and requires a direct person. These built-in routes use it:",[264,587,588,598],{},[267,589,590],{},[270,591,592,595],{},[273,593,594],{},"Area",[273,596,597],{},"Routes",[280,599,600,621,633,654,673,692],{},[270,601,602,605],{},[285,603,604],{},"Password and profile",[285,606,607,610,611,614,615,614,618],{},[255,608,609],{},"GET"," and ",[255,612,613],{},"POST \u002Fmanage\u002Finfo",", ",[255,616,617],{},"POST \u002Fmanage\u002Fpassword",[255,619,620],{},"POST \u002FresendConfirmationEmail",[270,622,623,626],{},[285,624,625],{},"Two-factor",[285,627,628,610,630],{},[255,629,609],{},[255,631,632],{},"POST \u002Fmanage\u002F2fa",[270,634,635,637],{},[285,636,167],{},[285,638,639,642,643,614,645,614,648,614,651],{},[255,640,641],{},"POST \u002Fpasskeys\u002FcreationOptions",", and ",[255,644,609],{},[255,646,647],{},"POST",[255,649,650],{},"PATCH \u002Fpasskeys",[255,652,653],{},"DELETE \u002Fpasskeys\u002F{id}",[270,655,656,659],{},[285,657,658],{},"ReAuth",[285,660,661,614,664,614,667,614,670],{},[255,662,663],{},"POST \u002FconfirmIdentity",[255,665,666],{},"POST \u002FconfirmIdentity\u002FpasskeyOptions",[255,668,669],{},"POST \u002FconfirmIdentity\u002FemailCode\u002Fsend",[255,671,672],{},"GET \u002Fmanage\u002FauthMethods",[270,674,675,678],{},[285,676,677],{},"External sign-in",[285,679,680,614,683,614,686,614,689],{},[255,681,682],{},"GET \u002Flogins",[255,684,685],{},"DELETE \u002Flogins\u002F{loginProvider}\u002F{providerKey}",[255,687,688],{},"GET \u002Flink\u002F{scheme}",[255,690,691],{},"GET \u002Flink\u002F{scheme}\u002Fcallback",[270,693,694,697],{},[285,695,696],{},"Sessions",[285,698,699,614,702,614,705],{},[255,700,701],{},"GET \u002Fsessions",[255,703,704],{},"DELETE \u002Fsessions\u002F{id}",[255,706,707],{},"POST \u002Fsessions\u002FrevokeOthers",[243,709,710,711,713,714,716,717,719],{},"These routes never accepted an OAuth access token, because their schemes do not include the OAuth validation scheme. The requirement makes that rule explicit, and it also refuses a cookie or token whose principal a host tagged with another kind. In ",[255,712,305],{},", the consent API, the connected apps API, and the developer app API refuse delegated tokens and API keys with ",[255,715,574],{},", even when a host scheme forwards a token to them. AuthEndpoints has no account deletion or API key management routes; put ",[255,718,566],{}," on yours.",[247,721,723],{"id":722},"one-handler-per-credential","One handler per credential",[243,725,726],{},"Authorizing a route with several schemes reads the request with each of them. An optional policy scheme picks one instead:",[380,728,730],{"className":382,"code":729,"language":384,"meta":385,"style":385},"builder.Services.AddAuthentication()\n    .AddAnyCallerScheme(options =>\n    {\n        options.BearerScheme = OAuthServerServiceCollectionExtensions.ValidationScheme; \u002F\u002F default: JWT if registered, else Identity bearer\n        options.ApiKeyScheme = \"ApiKey\";   \u002F\u002F optional, with ApiKeyPrefix\n        options.ApiKeyPrefix = \"ak_\";\n    });\n\nbuilder.Services.AddAuthorization(options => options.AddPolicy(\"any-caller\", policy => policy\n    .AddAuthenticationSchemes(AnyCallerAuthenticationBuilderExtensions.SchemeName)\n    .RequireAuthenticatedUser()));\n",[255,731,732,748,762,767,792,816,837,842,847,889,908],{"__ignoreMap":385},[389,733,734,736,738,740,742,745],{"class":391,"line":392},[389,735,475],{"class":395},[389,737,350],{"class":399},[389,739,480],{"class":395},[389,741,350],{"class":399},[389,743,744],{"class":402},"AddAuthentication",[389,746,747],{"class":399},"()\n",[389,749,750,752,755,757,759],{"class":391,"line":427},[389,751,430],{"class":399},[389,753,754],{"class":402},"AddAnyCallerScheme",[389,756,406],{"class":399},[389,758,491],{"class":490},[389,760,761],{"class":399}," =>\n",[389,763,764],{"class":391,"line":451},[389,765,766],{"class":399},"    {\n",[389,768,769,772,774,777,780,782,784,786,789],{"class":391,"line":465},[389,770,771],{"class":395},"        options",[389,773,350],{"class":399},[389,775,776],{"class":395},"BearerScheme ",[389,778,779],{"class":399},"=",[389,781,544],{"class":395},[389,783,350],{"class":399},[389,785,549],{"class":395},[389,787,788],{"class":399},";",[389,790,791],{"class":447}," \u002F\u002F default: JWT if registered, else Identity bearer\n",[389,793,794,796,798,801,803,806,809,811,813],{"class":391,"line":472},[389,795,771],{"class":395},[389,797,350],{"class":399},[389,799,800],{"class":395},"ApiKeyScheme ",[389,802,779],{"class":399},[389,804,805],{"class":399}," \"",[389,807,808],{"class":412},"ApiKey",[389,810,409],{"class":399},[389,812,788],{"class":399},[389,814,815],{"class":447},"   \u002F\u002F optional, with ApiKeyPrefix\n",[389,817,818,820,822,825,827,829,832,834],{"class":391,"line":524},[389,819,771],{"class":395},[389,821,350],{"class":399},[389,823,824],{"class":395},"ApiKeyPrefix ",[389,826,779],{"class":399},[389,828,805],{"class":399},[389,830,831],{"class":412},"ak_",[389,833,409],{"class":399},[389,835,836],{"class":399},";\n",[389,838,839],{"class":391,"line":554},[389,840,841],{"class":399},"    });\n",[389,843,845],{"class":391,"line":844},8,[389,846,469],{"emptyLinePlaceholder":468},[389,848,850,852,854,856,858,860,862,864,866,868,870,872,874,876,879,881,883,885,887],{"class":391,"line":849},9,[389,851,475],{"class":395},[389,853,350],{"class":399},[389,855,480],{"class":395},[389,857,350],{"class":399},[389,859,485],{"class":402},[389,861,406],{"class":399},[389,863,491],{"class":490},[389,865,494],{"class":399},[389,867,497],{"class":395},[389,869,350],{"class":399},[389,871,502],{"class":402},[389,873,406],{"class":399},[389,875,409],{"class":399},[389,877,878],{"class":412},"any-caller",[389,880,409],{"class":399},[389,882,418],{"class":399},[389,884,516],{"class":490},[389,886,494],{"class":399},[389,888,521],{"class":395},[389,890,892,894,896,898,901,903,906],{"class":391,"line":891},10,[389,893,430],{"class":399},[389,895,529],{"class":402},[389,897,406],{"class":399},[389,899,900],{"class":395},"AnyCallerAuthenticationBuilderExtensions",[389,902,350],{"class":399},[389,904,905],{"class":395},"SchemeName",[389,907,424],{"class":399},[389,909,911,913,916],{"class":391,"line":910},11,[389,912,430],{"class":399},[389,914,915],{"class":402},"RequireAuthenticatedUser",[389,917,561],{"class":399},[264,919,920,930],{},[267,921,922],{},[270,923,924,927],{},[273,925,926],{},"Request",[273,928,929],{},"Handler",[280,931,932,952,965],{},[270,933,934,947],{},[285,935,936,939,940,943,944,444],{},[255,937,938],{},"Authorization"," credential starting with ",[255,941,942],{},"ApiKeyPrefix"," (as in ",[255,945,946],{},"Bearer ak_…",[285,948,949],{},[255,950,951],{},"ApiKeyScheme",[270,953,954,960],{},[285,955,956,957,959],{},"Any other ",[255,958,938],{}," header",[285,961,962],{},[255,963,964],{},"BearerScheme",[270,966,967,972],{},[285,968,969,970,959],{},"No ",[255,971,938],{},[285,973,974,977],{},[255,975,976],{},"CookieScheme"," (the application cookie by default)",[243,979,980,981,984,985,988,989,991],{},"A request with an invalid token and a valid cookie gets ",[255,982,983],{},"401",": the cookie is never read for it. The scheme is opt-in and does not change the default scheme. A token in the query string (",[255,986,987],{},"QueryStringTokenPaths",") has no ",[255,990,938],{}," header, so this scheme sends it to the cookie; keep those routes on the OAuth validation scheme.",[993,994,995],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":385,"searchDepth":392,"depth":427,"links":997},[998,999,1000,1001],{"id":249,"depth":427,"text":250},{"id":377,"depth":427,"text":378},{"id":578,"depth":427,"text":579},{"id":722,"depth":427,"text":723},"Tell a person calling directly apart from an AI agent or client with a delegated token, or an API key, and keep person-only actions for people.","md",null,{},{"title":207,"icon":210},{"title":207,"description":1002},"F4GSRDclQOetm7cufxzNfT0YUxFr5W0sHBKLrpkPSoc",[1010,1012],{"title":203,"path":204,"stem":205,"description":1011,"icon":78,"children":-1},"Opt-in package that lets other apps and tool clients sign users in through your app and get access and ID tokens.",{"title":218,"path":219,"stem":220,"description":1013,"icon":221,"children":-1},"How AuthEndpoints differs from wiring Identity yourself, from OpenIddict, and from MapIdentityApi.",1795238830227]