Beispiel #1
0
 private void Handle(SolutionEvent @event)
 {
     Applications.Add(new AuthenticationClient(
                          authenticationType: @event.GetValue("AuthenticationType"),
                          applicationName: @event.GetValue("ApplicationName"),
                          applicationUrl: @event.GetValue("ApplicationUrl")));
 }
Beispiel #2
0
        private void HandleIdentityServerAvailable(SolutionEvent @event)
        {
            _applicationEvents.Publish(ApplicationEvents.AngularJs_ConfigurationRequired, new Dictionary <string, string>()
            {
                { "Key", "identity_authority_url" },
                { "Value", @event.GetValue("AuthorityUrl") },
            });

            // TODO: This is dubious
            _decoratorDispatcher.Dispatch(x => x.OnIdentityServerAvailable(@event.GetValue("BaseUrl"), @event.GetValue("AuthorityUrl")));
        }
Beispiel #3
0
 private void HandleIdentityServerAvailable(SolutionEvent @event)
 {
     _solutionEvents.Publish(ApplicationEvents.Config_AppSetting, new Dictionary <string, string>()
     {
         { "Key", "IdentityServer.Issuer.Name" },
         { "Value", @event.GetValue("AuthorityUrl") }
     });
 }