Developer forum

Forum » Development » Extend template in LoginProvider

Extend template in LoginProvider

Anders Ebdrup
Reply

Hi Dynamicweb,

 

We have made an integration to NemID with "External Authentication" in Dynamicweb, but we are missing a feature in the class: LoginProvider to extend the current template.

A method in ExtendTemplate(Template template) would be very nice, so we can set the specific tags as NemId requires a lot of info to be set in the template and I would like to keep all the logic in the login-provider and not making a lot of logic in the template as it will always be the same data that is required in the frontend, but dependent on the setup from the backend.

 

Best regards, Anders


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Anders

I've implemented a overridable Render(template) method on Modules.UserManagement.ExternalAuthentication.ExternalLoginProvider base class, TFS#23036.

Override that method to render provider specific tags to the template currently rendering the provider.

Ready with next 8.8.1 hotfix.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum