From 01ab6037234cd5f37b0d185c0e0dc06b9c82f7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Tue, 26 Dec 2017 18:27:09 +0100 Subject: [PATCH] Introduce OpenIddictApplicationManager.GetPostLogoutRedirectUrisAsync()/GetRedirectUrisAsync() --- .../Managers/OpenIddictApplicationManager.cs | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs b/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs index 4aaa35d3..0585d32a 100644 --- a/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs +++ b/src/OpenIddict.Core/Managers/OpenIddictApplicationManager.cs @@ -417,6 +417,44 @@ namespace OpenIddict.Core return Store.GetIdAsync(application, cancellationToken); } + /// + /// Retrieves the logout callback addresses associated with an application. + /// + /// The application. + /// The that can be used to abort the operation. + /// + /// A that can be used to monitor the asynchronous operation, whose + /// result returns all the post_logout_redirect_uri associated with the application. + /// + public virtual Task> GetPostLogoutRedirectUrisAsync([NotNull] TApplication application, CancellationToken cancellationToken) + { + if (application == null) + { + throw new ArgumentNullException(nameof(application)); + } + + return Store.GetPostLogoutRedirectUrisAsync(application, cancellationToken); + } + + /// + /// Retrieves the callback addresses associated with an application. + /// + /// The application. + /// The that can be used to abort the operation. + /// + /// A that can be used to monitor the asynchronous operation, + /// whose result returns all the redirect_uri associated with the application. + /// + public virtual Task> GetRedirectUrisAsync([NotNull] TApplication application, CancellationToken cancellationToken) + { + if (application == null) + { + throw new ArgumentNullException(nameof(application)); + } + + return Store.GetRedirectUrisAsync(application, cancellationToken); + } + /// /// Determines whether an application is a confidential client. ///