Hey folks. I have a weird situation. I have a demo...
# random
l
Hey folks. I have a weird situation. I have a demo website (built in vuejs - only front end code, no backend) that I need to put online and behind a password. I would like to avoid actually implementing Auth on this and was hoping some hosting service provides a password blocker or auth service out of the box to support this? Netlify? Worse case, I’ll hook this Vue app with something like Auth0 or AWS Cognito and create users there. But I am looking to avoid doing that. Any pointers?
b
Netlify does do this but its not available on the free plan. https://docs.netlify.com/visitor-access/password-protection/
👍 2
f
If Basic Authentication in HTTP works for you, then it might be possible with Vercel on the free plan. Can try two things: 1. Adding a custom header to the response for Basic Auth (https://vercel.com/docs/configuration#project/headers) 2. https://github.com/flawyte/static-auth Haven't tried, so not sure if these might work or not.
👍 1
c
👀 2
👍 1
q
m
Auth0 has a VueJS SDK and is painless to set up. https://auth0.com/docs/quickstart/spa/vuejs
a
HTTP Basic Auth.