Base solution for your next web application

Activities of "mdepouw"

But, it didn't work for me as the AJAX request is returning a 302 which redirects the browser.

after changing [AbpMvcAuthorize] to [AbpAuthorize] 🎉:

thanks @ismcagdas!

Hi @ismcagdas 👋 - well that's timely!

Reviewing that PR, I headed down the same path in my research 😊! But, it didn't work for me as the AJAX request is returning a 302 which redirects the browser.

Also, I don't see same Startup.cs file; I don't have anything about CookieAuthenticationOptions. Is that server side change applicable for the Angular project template? 🤔

Maybe yours work b/c of the change from [AbpMvcAuthorize] to [AbpAuthorize] ? (I gotta look up the difference between those two)

Articles Tutorials | AspNet Boilerplate: configure debugging in Visual Studio

Articles Tutorials | AspNet Boilerplate: configuring debugging in Visual Studio

version: Angular version of Zero using QueryStringTenantResolver

Is there a set of API(s) I can call to switch a user from one tenant to another? I reviewed the behavior of linked accounts and tried doing something similar by calling Logout() but I'm having trouble if I call Logout() on a user that is not logged in as that issues a 302 (on a ajax call). I also have trouble calling Logout() if the user's token has expired.

Use case:

  1. user A logins into tenant X
  2. user A then clicks a link for another tenant Y

Current working solution In AppPreBootstrap.ts I'm checking for a specific query parameter to trigger:

abp.auth.clearRefreshToken();
abp.auth.clearToken();
AppPreBootstrap.resolveTenancyName(AppConsts.appBaseUrlFormat);
location.href = AppConsts.appBaseUrlFormat;

In the login page, I'm automatically redirecting to the IDP which recognizes the user is already signed in & returns back to our app

In this solution, I'm not calling Logout() on the server. Are there any potential problems you see by not calling it?

Alternative solution: call Logout() in AppPreBootstrap.ts

  1. How can I determine if the user is currently logged-in so I can only call Logout() when they are
  2. How can I determine if the token is expired?

I assume both of those would involve reading some values from session storage?

Thanks!

Thanks for the link but I wanted to raise a global issue. I've seen broken links like this numerous times on the support site.

I stumbled upon another today:

I've seen a few links like this now:

source

bad link: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1858%22%3Ehttps://github.com/aspnetboilerplate/as

If license control pacakge doesn't have any source code used in the main app, so you can easily delete the reference of license packages and disable license control :)

Ah, 🤦‍♂️, that makes sense! I see now, thanks!

Did you configure OpenId section in appsettings.json and faced a problem while login via Azure AD ?

I did but we're using Azure AD B2C not AD 😊. Please see this ticket for challenges (looks like lack of support) for configuring Zero w/ B2C.

Closing this ticket, thanks!

You can inject IConfigurationRoot to read appsetting.json

That was not giving me the full config. But, I injected IWebHostEnvironment env and then called env.GetAppConfiguration() which gave me a IConfigurationRoot that did have all the config.

Showing 21 to 30 of 39 entries