Base solution for your next web application

Activities of "bbakermmc"

Are you able to provide a full solution based off the free aspnetboilerplate template? Ive tried using what you proposed and it doesnt work. When you hit the base url of the site in the "Home" controller it goes in to a ADFS redirection loop instead of redirecting me to login page. If I got to the /Account/Login, I see the "ADFS" button, but when I click it, it just redirects me back to login page. The loginInfo in "ExternalLoginCallback" is null.

Do I need to set some IIS setting like FormsAuth? Disable anonymous or something?

Update: If I set IIS to allow FormsAuth using "/Account/Login" then when I hit the authorize link in the home controller, I get redirected to the login page.

If I Have windows auth enabled. When I hit the home controller I get a ADFS redirection loop instead of being redirected to the login page, however, if I goto the login page directly I am able to use the button properly and it logs in just fine as long as my username matches my windows name (Ill have to modify the registration page to pass these fields in and make them read only, so thats minor).

Im trying to use the Federation Authentication and its working when the user logins in using /Account/Login. But if the user isnt logged in and hits a [AbpMvcAuthorize] tag the site doesnt redirect to /Account/Login like I would expect it to. Instead it actually takes them to the Federation Auth server, and then the user gets stuck in a ADFS redirection loop.

What am I missing?

var cookieOptions = new CookieAuthenticationOptions
            {
                //AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Account/Login/"),
                CookieManager = new SystemWebCookieManager()
            };
            app.UseAbp();

            app.UseKentorOwinCookieSaver();
            app.UseCookieAuthentication(cookieOptions);
            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);

if (IsTrue("ExternalAuth.WsFederation.IsEnabled"))
            {
                app.UseWsFederationAuthentication(CreateWsFederationAuthOptions());
            }


private static WsFederationAuthenticationOptions CreateWsFederationAuthOptions()
        {
            var options = new WsFederationAuthenticationOptions
            {
                MetadataAddress = "https://fs/FederationMetadata/2007-06/FederationMetadata.xml",
                AuthenticationType = "Windows",
                Caption = "Domain",
                //localhost
                Wreply = "https://prodapp2/Account/Login/",
                Wtrealm = "https://prodapp2/Account/Login/"
            };

            return options;
        }

I see this is now in the Paid version, will this be released to the Free version any time soon?

I see this is now part of the Paid version, will this be release to the free version anytime soon?

Showing 161 to 164 of 164 entries