# How can the sign-out redirect URI be customized in a .NET 7.0 ASP.NET Core application?

**URL:** <https://devforum.okta.com/t/how-can-the-sign-out-redirect-uri-be-customized-in-a-net-7-0-asp-net-core-application/25212>\
**Category:** OAuth/OIDC\
**Created:** [September 1, 2023, 12:01pm UTC](https://devforum.okta.com/t/how-can-the-sign-out-redirect-uri-be-customized-in-a-net-7-0-asp-net-core-application/25212 "2023-09-01T12:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samunro](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/samunro/32/4926_2.png) [@samunro](https://devforum.okta.com/u/samunro)\
**Post date:** [September 1, 2023, 12:01pm UTC](https://devforum.okta.com/t/how-can-the-sign-out-redirect-uri-be-customized-in-a-net-7-0-asp-net-core-application/25212/1 "2023-09-01T12:01:20Z")

</div>

I am implementing single-sign-_ **out** _ in my .NET 7.0 [ASP.NET](http://ASP.NET) Core application based on the following guide.

> **[Sign users in to your web app using the redirect model | Okta Developer](https://developer.okta.com/docs/guides/sign-into-web-app-redirect/asp-net-core-3/main/#define-a-callback-route)**
>
> Secure, scalable, and highly available authentication and user management for any app.

By default, the sign-out redirect URI that is used is as follows.

[https://localhost:7197/signout/callback](https://localhost:7197/signout/callback)

I attempted to customize this URI by setting the `OktaMvcOptions.PostLogoutRedirectUri` property on the `OktaMvcOptions` instance that is passed to the `AuthenticationBuilder.AddOktaMvc()` method to the following value.

[https://localhost:7197/signout/callback2](https://localhost:7197/signout/callback2)

This does not appear to have any effect on the `post_logout_redirect_uri` query string parameter that is included in the request to the following URL. Note that I have redacted the Okta domain.

[https://dev-XXXXXXXX.okta.com/oauth2/default/v1/logout](https://dev-XXXXXXXX.okta.com/oauth2/default/v1/logout)

How should I be doing this?

Is there a more relevant guide that targets .NET 7.0 which I could be using?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 15, 2024, 11:42pm UTC](https://devforum.okta.com/t/how-can-the-sign-out-redirect-uri-be-customized-in-a-net-7-0-asp-net-core-application/25212/2 "2024-02-15T23:42:39Z")

</div>


