Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Duende.​IdentityServer.​Services.​IIdentityServerInteractionService

Assembly: Duende.IdentityServer

Provide services be used by the user interface to communicate with IdentityServer.

Methods

GetAuthorizationContextAsync​(string returnUrl)
Gets the authorization context.
returnUrl The return URL.
bool
IsValidReturnUrl​(string returnUrl)
Indicates if the returnUrl is a valid URL for redirect after login or consent.
returnUrl The return URL.
GetErrorContextAsync​(string errorId)
Gets the error context.
errorId The error identifier.
GetLogoutContextAsync​(string logoutId)
Gets the logout context.
logoutId The logout identifier.
CreateLogoutContextAsync​()
Used to create a logoutId if there is not one presently.
GrantConsentAsync​(Models.​AuthorizationRequest request, Models.​ConsentResponse consent, string subject = null)
Informs IdentityServer of the user's consent.
request The request.
consent The consent.
subject The subject.
DenyAuthorizationAsync​(Models.​AuthorizationRequest request, Models.​AuthorizationError error, string errorDescription = null)
Triggers error back to the client for the authorization request. This API is a simpler helper on top of GrantConsentAsync.
request The request.
GetAllUserGrantsAsync​()
Returns a collection representing all of the user's consents and grants.
RevokeUserConsentAsync​(string clientId)
Revokes all a user's consents and grants for a given client, or for all clients if clientId is null.
clientId The client identifier.
RevokeTokensForCurrentSessionAsync​()
Revokes all of a user's consents and grants for clients the user has signed into during their current session.