Changes required for Minimal Hosting Model
I'm trying to port this to another site which is on Umb V13.3.2 and uses the minimal hosting model (i.e. no startup.cs). Using the same credentials as the this package on localhost, I don't get any login providers so I don't get the "Login with Open ID Connect" button. I was wondering if I need to add a composer so Program.cs picks it up. Not sure what needs to be done to convert to the minimal hosting model.
Please advise.
Thanks
I haven't tried the minimal hosting model yet. Maybe these docs can help: https://docs.umbraco.com/umbraco-cms/tutorials/add-google-authentication
The minimal hosting model is just how Umbraco 13+ is out of the box. It no longer has a startup.cs. Is the startup.cs in the repo just a hangover from converting from V11-12? I was trying to work out if the reason I wasn't getting any login providers was because something wasn't registered correctly. The startup.cs is confusing as it doesn't exist now in a normal Umbraco 13+ installation. I feel as if I'm so close to getting it all working but I can't translate your work directly, or I've made a mistake somewhere else, but I don't think I have ;)
Hi,
I did a complete rebuild for Umbraco 14. It uses the minimal hosting model. You can find the PR here: https://github.com/jbreuer/Umbraco-OpenIdConnect-Example/pull/12. It has been merged into the main branch and you can find it here in Umbraco-OpenIdConnect-Example-v14+.
Great. As soon as we can get it running, I'll hopefully see what's needed to integrate it into a V13.5 site. Can't run at the moment due to issue 13. I'm guessing the V14 core section will translate easily to V13.5 as V14 is all about the Back Office front end.
Update: I now have it running, PR 14 submitted.