Skip to content

redwoodjs/playground-auth

Repository files navigation

Redwood's Auth Playground

This repo demonstrates all the Authentication Providers that Redwood supports. Read more about our authentication providers in our docs, or preview the deploy of this site on Netlify!

🔗 Link

Setup

In order to support several Auth Providers, you may want to set custom values for the default provider settings:

Auth0

If you want to use the signUp function, returned by the useAuth hook, to default the Auth0 UI to the sign up "tab", you need to be using the "New Universal Login Experience". The "Classic Universal Experience" does not support the screen_hint to set the tab.

AUTH0_DOMAIN=""
AUTH0_AUDIENCE=""
AUTH0_CLIENT_ID=""
AUTH0_CLIENT_SECRET=""
AUTH0_REDIRECT_URI=""
AUTH0_AUDIENCE=""

Azure Active Directory

AZURE_ACTIVE_DIRECTORY_CLIENT_ID=""
AZURE_ACTIVE_DIRECTORY_AUTHORITY=""
AZURE_ACTIVE_DIRECTORY_REDIRECT_URI=""
AZURE_ACTIVE_DIRECTORY_LOGOUT_REDIRECT_URI=""

Netlify Identity

Set site

Magic.link

MAGIC_SECRET_KEY=""

Firebase

FIREBASE_API_KEY=""
FIREBASE_AUTH_DOMAIN=""
FIREBASE_DATABASE_URL=""
FIREBASE_PROJECT_ID=""
FIREBASE_STORAGE_BUCKET=""
FIREBASE_MESSAGING_SENDER_ID=""
FIREBASE_APP_ID=""

Supabase

SUPABASE_KEY=""
SUPABASE_URL=""
SUPABASE_JWT_SECTRET="" # Found in Supabase dashboard > Settings > API

SuperTokens

SUPERTOKENS_WEBSITE_DOMAIN=""
SUPERTOKENS_API_DOMAIN=""
SUPERTOKENS_API_GATEWAY_PATH=""
SUPERTOKENS_CONNECTION_URI=""

SUPERTOKENS_JWKS_URL=""

# OAuth client credentials for the ones configured in this demo
SUPERTOKENS_GOOGLE_CLIENT_ID=""
SUPERTOKENS_GOOGLE_CLIENT_SECRET=""

SUPERTOKENS_GITHUB_CLIENT_ID=""
SUPERTOKENS_GITHUB_CLIENT_SECRET=""

SUPERTOKENS_APPLE_CLIENT_ID=""
SUPERTOKENS_APPLE_SECRET_KEY_ID=""
SUPERTOKENS_APPLE_SECRET_PRIVATE_KEY=""
SUPERTOKENS_APPLE_SECRET_TEAM_ID=""

About

This repo demonstrates all the authentication providers that Redwood supports

Resources

License

Stars

Watchers

Forks

Languages