Activities of "LiSong"

Question

I have implemented SSO in a Next.js site using ABP.io, but when I call the API endpoints, I get a 401. Is there any doc on how to call an endpoint with the SSO token? thanks

I created new applications under OpenID > Applications, and SSO is working correctly. For example, I can sign in to my Next.js application using abp.io accounts.

Now I’d like to update the flow so that when users click the SSO sign-in button from the Next.js application, the abp.io site automatically switches to a specific tenant—for example, the tenant “NextJs”—when the user lands on the /Account/Register page.

I noticed that the Next.js app invokes /connect/authorize?client_id=Next_app. So I’m wondering: can we add server-side logic in abp.io to automatically switch to the “NextJs” tenant when client_id equals Next_app?

Is this a good solution? If so, how should it be implemented? Or is there a better recommended approach for tenant resolution in this case?

Answer

but how can I use it here, or can you give me the full file? can't find the namespaces

*You can try to override the GetSelectedStyleAsync method of ILeptonXStyleProvider service always to return LeptonXStyleNames.Light?

public override Task<string> GetSelectedStyleAsync() { return Task.FromResult(LeptonXStyleNames.Light); } Thanks.*

Answer

[maliming] said: hi

Please inherit the LeptonXStyleProvider base class.

Thanks.

hi, is there a doc for this LeptonXStyleProvider? I couldn't find one and I found this support ticket https://abp.io/support/questions/5295/Tenant-specific-themes

Answer

is there a doc for this LeptonXStyleProvider? I couldn't find one and I found this support ticket https://abp.io/support/questions/5295/Tenant-specific-themes

Answer

how to implement other functions?

namespace Tapp.Web;

public class TappLeptonXStyleProvider : ILeptonXStyleProvider { public Task<string> GetSelectedStyleAsync() { return Task.FromResult(LeptonXStyleNames.Light); }

public Task&lt;LeptonXSideMenuState&gt; GetSideMenuStateAsync()
{
    return Task.FromResult(LeptonXSideMenuState.Expanded);
}

public Task&lt;bool&gt; GetSideMenuStateAsync()
{
    throw new System.NotImplementedException();
}

}

Answer

are you sure? I got this Cannot resolve symbol 'LeptonXThemeUiOptions'

Question

Is there a way disable dark theme? I have removed the dark/light theme swtich and set up the light theme as default, however, when I was testing the project locally, it shows in dark theme, is there a way to force the app to use light theme only?

hi, it worked serverBuilder.AddProductionEncryptionAndSigningCertificate("openiddict.pfx", "your_password"); however, I have to put the pfx in the server folder directly, which is not the best practice, any better way to manage the pfx file? thanks

I got a question, currently the site is working fine, it's multi-tenacy site. if this line of code is not working, why the auth, login, sign up pages are still working? thanks

using var store = new X509Store(StoreName.My, StoreLocation.CurrentUser);

This line of code has a problem.

The Azure hosting environment does not allow your application to access the CurrentUser certificate store by default.

Showing 1 to 10 of 117 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 10, 2025, 12:02
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.