Where/What project to add custom BackOffice Extern...
# help-with-umbraco
b
I'm trying to add a custom logon provider and am not sure what project to use. Do I create a project from the 14.1.1 nuget Template and add my own namespace etc. or do I clone the umbraco-cms and add it somewhere there? The documentation at https://docs.umbraco.com/umbraco-cms/reference/security/external-login-providers#custom-named-configuration mentions to add to "App_Plugins/ExternalLoginProviders" but it does not exist in a project created from the Umbraco 14.1.1 nuget
I figured out using the nuget and from there I had to create up my own provider You create the app_plugins yourself at the root of the project
t
Okay, i'm trying to get it to work on version 13..
b
I'm using version 14.3.1, started out with 14.0.0 I looked at: https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers (clone the project and take a peek) and used one of those as a template for what I should do to create a handler, options, extension, etc. You will want to look in "src" (example is yahoo: https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/tree/dev/src/AspNet.Security.OAuth.Yahoo)
t
Thanks! I will give it a look
My issues is that I can't get the custom button to show..
b
All I did was copy: https://docs.umbraco.com/umbraco-cms/reference/security/external-login-providers Create a directory in the root of your project called "App_Plugins" with a sub dir of "my-auth-providers" and create a .json with a name of "umbraco-package.json" Put the contents of the picture in that json. Keep in mind that when you publish out the project you might have to manually publish the "App_Plugins" dir. https://cdn.discordapp.com/attachments/1275193041652547705/1306281655748661248/image.png?ex=67361918&is=6734c798&hm=c8ba62bca847ebb80a514cffd8df2184ba8932bf58e18268a36954df31357038&
t
I have tried that.. 😛 But will give it a look again! Thanks!
3 Views