Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aaron 43 posts 327 karma points c-trib
    1 week ago
    Aaron
    1

    Custom backoffice provider doesn't show

    I've installed the package called Sustainsys.Saml2 this comes with a built in way to register it much like the OIDC providers.

    However the button simply does not show up on the backoffice login screen, this is my code:

                        backOfficeAuthenticationBuilder.AddSaml2(
                            backOfficeAuthenticationBuilder.SchemeForBackOffice(SamlUserExternalLoginProviderOptions.SchemeName),
                            options =>
    
                            {
                                options.SignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
                                options.SPOptions.EntityId = new EntityId("");
                                var identityProvider = new IdentityProvider(new EntityId(""),
                                    options.SPOptions)
                                {
                                    SingleSignOnServiceUrl = new Uri(""),
                                    Binding = Saml2BindingType.HttpRedirect,
                                };
                                identityProvider.SigningKeys.AddConfiguredKey(new X509Certificate2("testcert.cert"));
                                options.IdentityProviders.Add(identityProvider);
                            }
                        );
    

    Pulling my hair out here 😅 It looks like it "should" work

Please Sign in or register to post replies

Write your reply to:

Draft