Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

404 for the Metadata Endpoint in RC #15

Closed
equist opened this issue Jan 21, 2015 · 1 comment
Closed

404 for the Metadata Endpoint in RC #15

equist opened this issue Jan 21, 2015 · 1 comment

Comments

@equist
Copy link

equist commented Jan 21, 2015

When I upgraded from Beta 4 to RC I got 404 on /wsfed/metadata. I thought that it might have moved, but I couldn't find where and the samples does not seem to point on any other location.

I am using IdSrv in the same process with this configuration:

        app.Map("/sts", stsApp =>
                        {
                            var factory = InMemoryFactory.Create(null, Clients.Get(), Scopes.Get());
                            factory.UserService = new Registration<IUserService>(new MyInMemoryUserService(Users.Get()));

                            var options = new IdentityServerOptions
                                          {
                                              IssuerUri = "XXX",
                                              SiteName = "XXX",
                                              RequireSsl = false, //Test

                                              SigningCertificate = Certificate.Get(),
                                              Factory = factory,

                                              AuthenticationOptions = new AuthenticationOptions
                                              {
                                                  IdentityProviders = ConfigureAdditionalIdentityProviders
                                              },
                                              PluginConfiguration = ConfigurePlugins
                                          };

                            stsApp.UseIdentityServer(options);
                        });

    private void ConfigurePlugins(IAppBuilder app, IdentityServerOptions options)
    {
        var factory = new WsFederationServiceFactory
        {
            UserService = options.Factory.UserService,
            RelyingPartyService = new Registration<IRelyingPartyService>(typeof(InMemoryRelyingPartyService))
        };

        factory.Register(new Registration<IEnumerable<RelyingParty>>(RelyingParties.Get()));

        var wsFedOptions = new WsFederationPluginOptions
        {
            IdentityServerOptions = options,
            EnableMetadataEndpoint = true,
            Factory = factory
        };

        app.UseWsFederationPlugin(wsFedOptions);

    }

As you can see I have also tried to set EnableMetadataEndpoint explicitly.

@equist
Copy link
Author

equist commented Jan 21, 2015

I had misstakenly changed build configuration without noticing and that caused the issue for me. Sorry.

@equist equist closed this as completed Jan 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant