External Authentication feature, Orchard Nuggets: How to add workflows to an ASP.NET Core app - This week in Orchard (18/10/2024)

The new AddShapeTableProvider extension method and the new External Authentication Feature are the topics for this week. Don't forget to check out our newest Orchard Nuggets post about how to add workflows to an ASP.NET Core app! Let's see the details!

Orchard Core updates

Add AddShapeTableProvider extension method

There is a new AddShapeTableProvider extension method that registers required services for the specified IShapeTableProvider. Here you can see some examples of how to use this new method instead of needing to pass the IShapeTableProvider to register it.

New ShapeTableProvider extension method

External Authentication Feature

We've introduced a new feature called External Authentication. This feature has been separated from the existing Users feature to improve dependency management and to provide an option to disable external authentication by default. As a result, the User Registration feature no longer needs to be enabled unless you specifically want to allow site registration.

This feature is only available on-demand and cannot be manually enabled or disabled. It is automatically enabled when a feature requiring external authentication is activated. We included a fast-forward migration to enable this feature automatically if previously needed. No action is needed from site administrators.

The following settings have been relocated to new classes as part of this update:

  • The properties UseScriptToSyncRoles and SyncRolesScript have been moved from LoginSettings to the new ExternalLoginSettings class.
  • The property UseExternalProviderIfOnlyOneDefined has also been moved from LoginSettings to ExternalLoginSettings.

In addition, several properties have been moved from RegistrationSettings to a new ExternalRegistrationSettings class:

  • NoPasswordForExternalUsers is now ExternalRegistrationSettings.NoPassword.
  • NoUsernameForExternalUsers is now ExternalRegistrationSettings.NoUsername.
  • NoEmailForExternalUsers is now ExternalRegistrationSettings.NoEmail.
  • UseScriptToGenerateUsername is now ExternalRegistrationSettings.UseScriptToGenerateUsername.
  • GenerateUsernameScript is now ExternalRegistrationSettings.GenerateUsernameScript.

Moreover, a new property, DisableNewRegistrations, has been added to ExternalRegistrationSettings, allowing you to prevent new external users from registering on the site. This property will be set by default if you currently use the NoRegistration value for the obsolete UsersCanRegister property.

External Authentication feature

News from the community

Orchard Nuggets: How to add workflows to an ASP.NET Core app

Do you want to send an email when a form is submitted? Perhaps delete a content item after a certain amount of time? Do you want to avoid write complex code?

Orchard Nuggets How to add workflows to an ASP.NET Core app

In our newest Orchard Nuggets post, we give you the answers! Don't forget to check out the other posts for more such bite-sized Orchard tips and let us know if you have another question!

Orchard Dojo Newsletter

Lombiq's Orchard Dojo Newsletter has 468 subscribers! We have started this newsletter to inform the community around Orchard of the latest news about the platform. By subscribing to this newsletter, you will get an e-mail whenever a new post is published to Orchard Dojo, including This week in Orchard of course.

Do you know of other Orchard enthusiasts who would like to read our weekly articles? Tell them to subscribe here!

If you are interested in more news about Orchard and the details of the topics above, don't forget to check out the recording of this Orchard meeting!