Skip to content

Commit

Permalink
Update custom.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tarasov-dev authored Dec 26, 2024
1 parent 9c4f524 commit 7ad4c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IdentityServer/v7/docs/content/ui/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Duende IdentityServer provides the [authorize interaction response generator]({{

### Built-in AuthorizeInteractionResponseGenerator

To provide custom logic for the authorize endpoint, the recommondation is to derive from the built-in *AuthorizeInteractionResponseGenerator* to inherit all the default logic pertaining to login and consent semantics.
To provide custom logic for the authorize endpoint, the recommendation is to derive from the built-in *AuthorizeInteractionResponseGenerator* to inherit all the default logic pertaining to login and consent semantics.
To augment the built-in logic, override *ProcessLoginAsync* and/or *ProcessConsentAsync* (depending on the nature of the custom logic).
The pattern would be to invoke the base implementation and if the result did not cause a login, consent or error, then the custom logic could be tested to determine if it is desired to prevent SSO and instead force the user to interact in some way (e.g. re-login, trigger MFA, accept a EULA, etc).
The sample below illustrates:
Expand Down

0 comments on commit 7ad4c85

Please sign in to comment.