Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes required for Minimal Hosting Model #10

Open
craigs100 opened this issue Jun 18, 2024 · 4 comments
Open

Changes required for Minimal Hosting Model #10

craigs100 opened this issue Jun 18, 2024 · 4 comments

Comments

@craigs100
Copy link

craigs100 commented Jun 18, 2024

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
Copy link
Owner

jbreuer commented Jun 19, 2024

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
Copy link
Author

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

@jbreuer
Copy link
Owner

jbreuer commented Sep 12, 2024

Hi,

I did a complete rebuild for Umbraco 14. It uses the minimal hosting model. You can find the PR here: #12. It has been merged into the main branch and you can find it here in Umbraco-OpenIdConnect-Example-v14+.

@craigs100
Copy link
Author

craigs100 commented Sep 16, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants