Open Closed

Self registration disabled / OpenIdConnect registration enabled #7845


User avatar
0
joey73 created
  • 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)
  • User Avatar
    0
    joey73 created

    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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share what page or code you have customized?

    We will remove the disabled state in register.js

  • User Avatar
    0
    joey73 created

    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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    The register page changes

    If you reach the https://localhost:44303/Account/Register page, it will redirect you to your external login provider(Google.)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi joey73

    Is your problem solved?

  • User Avatar
    0
    joey73 created

    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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Thanks

Made with ❤️ on ABP v9.0.0-preview Updated on October 03, 2024, 12:03