jbreuer / Umbraco-OpenIdConnect-Example

An example to show how Umbraco and OpenIdConnect work together
MIT License
29 stars 9 forks source link

Changes required for Minimal Hosting Model #10

Open craigs100 opened 2 weeks ago

craigs100 commented 2 weeks ago

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

jbreuer commented 1 week ago

I haven't tried the minimal hosting model yet. Maybe these docs can help: https://docs.umbraco.com/umbraco-cms/tutorials/add-google-authentication

craigs100 commented 1 week ago

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 ;)