I would like to protect my Hugo website behind an identity provider such as SAML or OpenID.
Is there a module existing for that ?
Or is there a way to detect if a user has a valid session on the backend before to display the site ?
Hugo is a STATIC website creation tool. Static webpages don’t have dynamic features like sessions. Sessions by the way are a feature of the webserver they are running on.
Netlify offers authentication tools. Other providers too. It depends on your setup.