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.​IBackchannelAuthenticationInteractionService
Assembly: Duende.IdentityServer
Provides services used by the user interface to communicate with IdentityServer for Client-Initiated Backchannel Authentication (CIBA) login requests. This service is available from the dependency injection system and is typically injected as a constructor parameter into MVC controllers that implement the CIBA user interaction UI.
Methods
System.​Threading.​Tasks.​Task<​System.​Collections.​Generic.​IReadOnlyCollection<​Models.​BackchannelUserLoginRequest>>
GetPendingLoginRequestsForCurrentUserAsync​(System.​Threading.​CancellationToken ct)
Returns all pending CIBA login requests for the currently authenticated user.
Use this to display a list of pending authentication requests that the user needs to approve or deny.
Returns A read-only collection of <see cref="T:Duende.IdentityServer.Models.BackchannelUserLoginRequest" /> objects representing
the pending login requests awaiting the current user's action.
ct
The cancellation token.
System.​Threading.​Tasks.​Task<​Models.​BackchannelUserLoginRequest>
GetLoginRequestByInternalIdAsync​(string id,
System.​Threading.​CancellationToken ct)
Returns the CIBA login request identified by the given internal store identifier.
Use this to retrieve the details of a specific pending request so the user can review and act on it.
Returns The <see cref="T:Duende.IdentityServer.Models.BackchannelUserLoginRequest" /> for the given <paramref name="id" /> ,
or <c>null</c> if no matching request is found.
id
The internal store identifier of the backchannel login request.
ct
The cancellation token.
CompleteLoginRequestAsync​(CompleteBackchannelLoginRequest completionRequest,
System.​Threading.​CancellationToken ct)
Completes the CIBA login request with the provided response for the current user or the subject passed.
Setting scopes on the <see cref="T:Duende.IdentityServer.Services.CompleteBackchannelLoginRequest" /> grants the request;
leaving scopes null or empty denies it.
completionRequest
The completion request containing the internal request ID, the consented scopes,
an optional description, and optionally an explicit subject and session ID.
ct
The cancellation token.