-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: adding auth and invite form #93
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This reverts commit af8aafb.
<BrowserOnly> | ||
{ | ||
() => { | ||
return <Auth0Provider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I'll double check and see what's going on. thanks for catching this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @skyrpex already took care of it with the new auth0 org account. will check as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbonig perhaps you can use this gitgub app instead of your own github user:
https://github.com/organizations/winglang/settings/applications/2045167
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently using the wingbot user.
if (!user) { | ||
return false; | ||
} | ||
let roles = user["https://winglang.io/roles"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets check if the user is part of our winglang/wing Contributors or Maintainers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This role is applied at auth0 level. When a user logs in we take a look at the roles they have applied to their user in auth0 and expose that as this claim. These roles will be added based on their GH team registration (right now it's by Pipedrive deal)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw that you already updated it to look for the user in github teams
We need @amielpb to help design the docs landing page so it will "speak" the same language as Guts website... (there will be a direct link between the website and the docs site) |
@skyrpex a new account in auth0 and added credentials to 1password |
fixes #95 |
and shortening the refresh time
This PR addresses most of the points in #91, specifically that it re-introduces the authentication that is required to see the docs. The following points have all been hit with this PR:
If he is already authenticated but not authorised (not part of contributors / maintainers) he should see:
Preview site is available here: https://website-git-auth-monada.vercel.app/