- ABP Framework version: v8.2.1
- UI Type: MVC
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
Hi,
We were looking at setting up our ABP solution for registering/login as follows:
- Local login allowed
- Self registration disabled
- OpenIdConnect login with registration
We have all the above implemented, however if we set self registration to disabled then we can't register through OpenIdConnect. If we set it to true then we can register but we have local registration enabled then. Looking at the source code it looks like we should should be able to do one or the other without having both enabled.
As you can see from the screenshot below the register button is disabled. As self registration is disabled the page has some JavaScript removed.
We are not sure if this is a bug, if this is correct and intended, how do we then remove the local registration flow, do we need to overwrite the source files and remove them ourselves. Same as the account/register pages, how do we ensure people can't create accounts even if we remove the link on the login manually
Kind regards,
Alex Welding
8 Answer(s)
-
0
It's worth noting that if we enable the button through developer tools and continue with registration, the flow works fine and we can register the user and login through the OpenId account perfectly fine
-
0
-
0
Hi
We have not customized any page yet. By what you suggested, this is a bug within ABP itself and we will have to override the code you pointed out until it is updated. I wanted confirmation that this was how it was meant to work and you have answered that so we shouldn't have to do anything else and what we implemented was technically correct.
We'll keep our setup the same and get the button reenabled through the overwrite until the fix is released. Thanks
Kind regards
Alex Welding
-
0
hi
This is a bug. We will fix this in the next patch.
You can add JS code or override the register page to remove the disable state from the button.
-
0
-
0
hi joey73
Is your problem solved?
-
0
Hey,
Yes, all good, thank you. We have a workaround for now and will await a fix. Thanks for your assistance.
Kind regards
Alex Welding
-
0
Thanks