Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ASP.NET核心OAuth与Oracle并使用ID令牌注销_C#_Oracle_Oauth - Fatal编程技术网

C# ASP.NET核心OAuth与Oracle并使用ID令牌注销

C# ASP.NET核心OAuth与Oracle并使用ID令牌注销,c#,oracle,oauth,C#,Oracle,Oauth,net核心内置机制od身份验证,如下所述: 我使用它连接到Oracle OICS 在Startup.csConfigureServices中,我基本上了解了链接中描述的内容 services .AddAuthentication(options => { (...) options.DefaultChallengeScheme = "Oracle"; }) .AddCookie() .AddOauth("Oracle&q

net核心内置机制od身份验证,如下所述:

我使用它连接到Oracle OICS

Startup.cs
ConfigureServices
中,我基本上了解了链接中描述的内容

services
 .AddAuthentication(options => 
   {
     (...)
     options.DefaultChallengeScheme = "Oracle";
   })
 .AddCookie()
 .AddOauth("Oracle",
   options =>
   {
     (...)
     options.Scope.Add("openid");
     (...)
   }
) 
一切正常,但要注销Oracle服务(并在注销后传递自定义url以重定向用户),我需要传递标识令牌:

因此,我创建了一个注销控制器,我需要构造一个GET to
(…)/oauth2/v1/userlogout?id\u token\u hint=…&post\u logout\u redirect\u url=…
(如果我想要自定义注销后重定向url,我必须添加
id\u token\u hint

如果这是正确的:我如何需要访问OAuth流的ID令牌(identity令牌)