danestves / remix-auth-auth0

An Auth0Strategy for Remix Auth, based on the OAuth2Strategy
MIT License
120 stars 22 forks source link

feat: added support for auth0 invitations #105

Closed ollie-bud closed 9 months ago

ollie-bud commented 9 months ago

When using auth0 organisations - you can opt to send users invitations to sign up via email, instead of creating users on their behalf first. They get an email with a link like so:

Header Header
Invitation link https://0.0.0.0:8788/?invitation={foo}&organization={bar}&organization_name={baz}

Adding the invitation to the /authorise endpoint works as expected - reference to the Auth0 doc

Param Description
invitation Ticket ID of the organization invitation. When inviting a member to an Organization, your application should handle invitation acceptance by forwarding the invitation and organization key-value pairs when the user accepts the invitation.

I've monkey patched it - and happy to send a video of it working e2e if you don't have 'organisations' available

danestves commented 9 months ago

Thanks! Published on v1.10.0