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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RELEASE]: Account linking #797

Open
rishabhpoddar opened this issue Sep 11, 2023 · 0 comments
Open

[RELEASE]: Account linking #797

rishabhpoddar opened this issue Sep 11, 2023 · 0 comments

Comments

@rishabhpoddar
Copy link
Member

rishabhpoddar commented Sep 11, 2023

馃搮 Checklist

馃敹 Staging

Dev Tag

Others

  • Example apps in create-supertokens-app CLI
  • Examples apps in supertokens-auth-react (add test for with-account linking example app)
  • Examples apps in supertokens-web-js
  • Examples apps in supertokens-react-native
  • Examples apps in supertokens-golang
  • Examples apps in supertokens-python
  • Examples apps in supertokens-node
  • Examples apps in android
  • Example apps in ios
  • Example apps in flutter
  • next.js:canary
  • RedwoodJS and playground-auth
  • Run on netlify (and hence AWS lambda) to check if it works fine there
  • Test on vercel (with-emailpassword-vercel app)
  • SuperTokens Jackson SAML example update
  • Supabase docs
  • Capacitor template app: https://github.com/RobSchilderr/capacitor-supertokens-nextjs-turborepo

馃摎 Documentation (test site)

  • All recipe main documentation update
  • Code type checking versions are pointing to X.Y
    • jsEnv
    • goEnv
    • pythonEnv
  • Update table schema in mysql / postgresql section for self hosted
  • community documentation update
  • website changes (test.supertokens.io)
    • homepage
    • pricing page feature list
    • comparison chart in the pricing page
    • product roadmap page
    • Update API key code snippet in SaaS dashboard
    • Update recipe list and links to the docs for supertokens.com dashboard
  • Complete docs checklist: Account linking聽docs#698
  • Add about account linking in migration docs - just need to say that make the created user a primary user, and that's it. If the user uses another login method from there on, they will just be linked automatically.

馃敟 Production

馃捇 NPM and core release

馃摎 Documentation

  • Pushed to production
  • Post message on discord about new update
  • Updated swaggerhub FDI spec
  • Update frontend-driver-interface repo
  • Updated swaggerhub CDI spec
  • Update core-driver-interface-repo
  • Updated dashboard spec on swaggerhub
  • Update dashboard spec
  • Update internal contributing guide to move from previous core version to the latest one
  • Algolia search update for docs
  • robots.txt, sitemap.xml, noindex page update
  • Auto generate release note on github:
    • supertokens-core
    • supertokens-plugin-interface
    • supertokens-mysql-plugin
    • supertokens-postgresql-plugin
    • supertokens-mongodb-plugin
    • supertokens-node
    • supertokens-golang
    • supertokens-python
    • supertokens-website
    • supertokens-web-js
    • supertokens-auth-react
    • supertokens-react-native
    • supertokens-android
    • supertokens-ios
    • supertokens-flutter
    • supertokens-dashboard

Contents of running try.supertokens.com script:

docker run -d \
    --restart=always \
    --name try-supertokens \
    --label name=try-supertokens \
    --label type=session-service \
    --label mode=production \
    --log-driver=awslogs --log-opt awslogs-region=ap-south-1 --log-opt awslogs-group=try-supertokens --log-opt awslogs-stream=try-supertokens \
    -e DISABLE_TELEMETRY=true \
    --publish 9999:3567 \
    supertokens/supertokens-postgresql:6.0

sleep 7

curl --location --request POST 'https://try.supertokens.com/recipe/dashboard/user' \
--header 'rid: dashboard' \
--header 'api-key: <YOUR-API-KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{"email": "[email protected]","password": "abcd1234"}'

curl --location --request POST 'https://try.supertokens.com/recipe/dashboard/user' \
--header 'rid: dashboard' \
--header 'api-key: <YOUR-API-KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{"email": "[email protected]","password": "abcd1234"}'

curl --location --request PUT 'https://try.supertokens.com/recipe/multitenancy/tenant' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenantId": "tenant1",
    "emailPasswordEnabled": true,
    "thirdPartyEnabled": true,
    "passwordlessEnabled": false
}'

curl --location --request PUT 'https://try.supertokens.com/tenant1/recipe/multitenancy/config/thirdparty' \
--header 'Content-Type: application/json' \
--data-raw '{
  "config": {
    "thirdPartyId": "google-workspaces",
    "name": "Google Workspaces",
    "clients": [
      {
        "clientId": "1060725074195-kmeum4crr01uirfl2op9kd5acmi9jutn.apps.googleusercontent.com",
        "clientSecret": "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",
        "additionalConfig": {
            "hd": "*"
        }
      }
    ]
  }
}'


curl --location --request PUT 'https://try.supertokens.com/recipe/multitenancy/tenant' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenantId": "tenant2",
    "emailPasswordEnabled": true,
    "thirdPartyEnabled": false,
    "passwordlessEnabled": false
}'

curl --location --request PUT 'https://try.supertokens.com/recipe/multitenancy/tenant' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tenantId": "tenant3",
    "emailPasswordEnabled": false,
    "thirdPartyEnabled": true,
    "passwordlessEnabled": true
}'


curl --location --request PUT 'https://try.supertokens.com/tenant3/recipe/multitenancy/config/thirdparty' \
--header 'Content-Type: application/json' \
--data-raw '{
  "config": {
    "thirdPartyId": "github",
    "name": "GitHub",
    "clients": [
      {
        "clientId": "467101b197249757c71f",
        "clientSecret": "e97051221f4b6426e8fe8d51486396703012f5bd"
      }
    ]
  }
}'
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

No branches or pull requests

1 participant