feat(next-api): basic authentication setup (#49378)

* feat(next-api): add fastify-auth0-verify plugin

* feat(next-api): add fastify-jwt-authz plugin

* feat(next-api): accept privacy endpoint with scopes support

* fix(next-api): ignore eslint and ts errors

They will be fixed in a future PR when the package with errors has been updated

Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Mrugesh Mohapatra
2023-02-24 12:36:53 +05:30
committed by Mrugesh Mohapatra
parent 1c9004046b
commit 7199f033fb
9 changed files with 514 additions and 10 deletions
+1
View File
@@ -10,6 +10,7 @@ SENTRY_ENVIRONMENT=staging
AUTH0_CLIENT_ID=client_id_from_auth0_dashboard
AUTH0_CLIENT_SECRET=client_secret_from_auth0_dashboard
AUTH0_DOMAIN=example.auth0.com
AUTH0_AUDIENCE=sample_audience
# Session, Cookie and JWT encryption strings
SESSION_SECRET=a_session_secret