Skip to content

Add extensibility points to the /connect/authorize/callback endpoint #1446

@CoderNumber1

Description

@CoderNumber1

Which version of Duende IdentityServer are you using?

6.2.4

Which version of .NET are you using?

net6.0

Describe the bug

In previous versions of IdentityServer, there existed some mechanism of customizing the html returned on /connect/authorize/callback. Admittedly, this was in 3.x of IdentityServer; but by providing a template for that page I was able to customize it so that it provided the user some indication of what was going on in cases where the application they were redirecting to was slow to respond. I've yet to find any analogue of this feature in the current version of IdentityServer. Is there was way to configure or override the contents of that page in 6.x?

To Reproduce

N/A

Expected behavior

I would hope there's a way to either register a controller/action to be called on the callback endpoint that I could provide a customized view, or otherwise some sort of callback that I could provide custom html content to be injected on the callback page. This would allow me to provide a customized message to our users that would indicate to them the purpose of the page they're on. In contrast, currently if the calling application is slow to respond on callback, the user just sees a blank white page while they wait for the application to respond.

Log output/exception with stacktrace

N/A

Additional context

I've considered using a middleware to look for and intercept the response from the callback endpoint, and then attempt to inject our desired content in the response. However, this seems like a bit of a hack, subject to breaking should IdentityServer need to change something about the callback operation/output in later versions. If this is the best means of accomplishing a custom message on the callback page, then so be it. I'm hoping though that there's an already supported solution to our requirement that I'm just not able to find in the documentation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions