示例#1
0
        public static string GetRedirectUrl(SignOutMessage message, IDictionary <string, object> env, IdentityServerOptions options)
        {
            var result   = new LogoutResult(message, env, options);
            var response = result.Execute();

            return(response.Headers.Location.AbsoluteUri);
        }
        private async Task <string> GetClientNameFromSignOutMessage(SignOutMessage signOutMessage)
        {
            if (signOutMessage != null)
            {
                var client = await _clientStore.FindClientByIdAsync(signOutMessage.ClientId);

                if (client != null)
                {
                    return(client.ClientName);
                }
            }
            return(null);
        }
示例#3
0
        public LogoutResult(SignOutMessage message, IDictionary <string, object> env, IdentityServerOptions options)
        {
            if (env == null)
            {
                throw new ArgumentNullException("env");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }

            this.env     = env;
            this.options = options;

            this.message = message;
        }