Having problem in logout functionality

I am using OKTA for OIDC Application. Login functionality of it is working fine.
But When i try to logout my OIDC application then i get an error in from OKTA side.

“end_session_endpoint”:“{host}/oauth2/{client}/v1/logout”

Application is retuning below error:

unable to download logout page.

What’s the value of your {client} variable? Is it the authorization server id? Because that’s what it should be, e.g. https://org.okta.com/oauth2/aus1234567890/v1/logout

Yes its similar to “https://org.okta.com/oauth2/aus1234567890/v1/logout”.

Is your application attempting to redirect to the /logout endpoint? Is it including the id token in the query parameters for this request (as the id_token_hint param)?

yes it is.

https:/{host}/oauth2/aus12…/v1/logout?id_token_hint=ey…

image

… I don’t understand the cause of this error. Why does it seem like the browser is attempting to download a file? Are you doing a browser redirect to the /logout endpoint?

I am just launching the logout page in browser so that it can logout properly.

Is logout functionality of OKTA works properly?
If yes do you have any sample application

We have several sample applications in various languages/frameworks, which you can find on Github: Okta, Inc · GitHub
All of these sample applications are OIDC applications that support login and logout