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

61 setup simple auth0 authentification #82

Merged
merged 18 commits into from
Nov 4, 2019

Conversation

deonclem
Copy link
Collaborator

@deonclem deonclem commented Oct 26, 2019

Go to /auth/login to access the login form. You should be able to log out from a profile once logged in.

image

image

I still need to investigate why it shows the auth0 domain on the Google login form:

image

The Auth0 application: https://manage.auth0.com/dashboard/eu/dev-cajmwjmi/

The Google OAuth app: https://console.developers.google.com/apis/dashboard?project=tottem

You should have access to both.

It should work fine on production (tottem.app domain) but I have no idea how it will behave / how to properly support dynamic subdomains from the Now deployments. The easiest way to test for now is locally.

@vercel
Copy link

vercel bot commented Oct 26, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/quiet/quiet/mqsvj6dyd
🌍 Preview: https://quiet-git-61-setup-simple-auth0-authentification.quiet.now.sh

@deonclem
Copy link
Collaborator Author

deonclem commented Oct 26, 2019

Also, clearly not a fan of how the redirections are handled right now but I guess it will be better when we have a proper login button.

src/components/Views/Header.tsx Outdated Show resolved Hide resolved
src/lib/auth0-variables.js Outdated Show resolved Hide resolved
@poulainv
Copy link
Owner

What are you worried about dynamic domain? I don't understand everything but we could merge as it does not impact user experience for now. Maybe we should plan a call while we could read all of this together!

@poulainv
Copy link
Owner

Sorry for conflict :/

cdeon added 2 commits October 31, 2019 20:22
# Conflicts:
#	next.config.js
#	src/components/Views/Header.tsx
#	src/pages/index.tsx
@vercel vercel bot had a problem deploying to staging November 1, 2019 12:41 Failure
@deonclem
Copy link
Collaborator Author

deonclem commented Nov 4, 2019

What are you worried about dynamic domain? I don't understand everything but we could merge as it does not impact user experience for now. Maybe we should plan a call while we could read all of this together!

Similar problem explained here: https://spectrum.chat/zeit/now/now-secrets-and-login-url-redirection~4bc64b46-5052-4ac2-9742-636b34be743f

Right now on https://quiet-cxckges17.now.sh you will get redirect on tottem.app after login (so it doesn't work). There must be a way to dynamically get the deployed domain in the code but I'm not sure how to make Auth0 support it (as I don't think you can use wildcards as authorized domains - i.e. quiet-*.now.sh)

Happy to merge for now 🙂

# Conflicts:
#	src/components/Views/Header.tsx
@deonclem deonclem merged commit 9b9a14c into master Nov 4, 2019
@deonclem deonclem deleted the 61-setup-simple-auth0-authentification branch November 4, 2019 13:32
deonclem pushed a commit that referenced this pull request Nov 5, 2019
deonclem pushed a commit that referenced this pull request Nov 6, 2019
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

Successfully merging this pull request may close these issues.

2 participants