के बाद एमवीसी क्लाइंट को रीडायरेक्ट करें मैं लॉगऑन काम नहीं कर रहा हूं, तो मैं IdenetityServer4 का उपयोग कर रहा हूं और एमवीसी क्लाइंट को रीडायरेक्ट कर रहा हूं। बाद मेरी MVC ग्राहक नियंत्रक लॉगआउट कार्रवाई है:पहचान सर्वर 4 - लॉगआउट
public async Task Logout()
{
await HttpContext.Authentication.SignOutAsync("Cookies");
await HttpContext.Authentication.SignOutAsync("oidc");
}
के बाद पहचान सर्वर 4 होस्ट कॉन्फ़िग फ़ाइल है।
public static IEnumerable<Client> GetClients()
{
return new List<Client>
{
// other clients omitted...
// OpenID Connect implicit flow client (MVC)
new Client
{
ClientId = "mvc",
ClientName = "MVC Client",
AllowedGrantTypes = GrantTypes.Implicit,
// where to redirect to after login
RedirectUris = { "http://localhost:58422/signin-oidc" },
// where to redirect to after logout
PostLogoutRedirectUris = { "http://localhost:58422/signout-callback-oidc" },
AllowedScopes = new List<string>
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile
}
}
};
}
मैं उपयोगकर्ता वापस MVC ग्राहक के लिए IdentityServer से लॉग आउट हो जाने पर पुन: निर्देशित करना चाहते हैं। अभी उपयोगकर्ता को एमवीसी साइट पर रीडायरेक्ट करने के लिए नीचे दी गई छवि में लिंक शो पर क्लिक करना है, लेकिन मुझे लगता है कि उपयोगकर्ता को स्वचालित रूप से एमवीसी क्लाइंट पर रीडायरेक्ट किया जाना चाहिए।
शेयर त्रुटि कृपया और अतिरिक्त लॉग। – Lutando