Skip to content

Commit

Permalink
feat: add route to generate auth token from logged in cloud users (#1…
Browse files Browse the repository at this point in the history
…8693)

* add route to generate auth token from logged in cloud users

* add strapi id to user model

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* show strapi id in admin panel

* create jwt token based on attached strapi id

* use secret from env variables

* fix merge conflicts in migration history

* Update query snapshots

* extract PERMITTED_FORUM_DOMAINS constant and switch redirect to posthog.com

* re-use existing authorize_and_redirect function

* create new strapi account when user without attached strapi id tries to login

* fix merge conflict in latest_migrations.manifest

* do not log new strapi account error

* Update query snapshots

* Update query snapshots

* provide random fallback value as JWT_SECRET_STRAPI

* add fallback value to forum_login query param

* update auth html page template design

* adjust test_user_modal test with new field

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cory Watilo <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2024
1 parent 6904d40 commit 1ff95da
Show file tree
Hide file tree
Showing 28 changed files with 561 additions and 127 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"posthog_user"."distinct_id",
"posthog_user"."is_email_verified",
"posthog_user"."has_seen_product_intro_for",
"posthog_user"."strapi_id",
"posthog_user"."email_opt_in",
"posthog_user"."theme_mode",
"posthog_user"."partial_notification_settings",
Expand Down Expand Up @@ -232,6 +233,7 @@
"posthog_user"."distinct_id",
"posthog_user"."is_email_verified",
"posthog_user"."has_seen_product_intro_for",
"posthog_user"."strapi_id",
"posthog_user"."email_opt_in",
"posthog_user"."theme_mode",
"posthog_user"."partial_notification_settings",
Expand Down
Loading

0 comments on commit 1ff95da

Please sign in to comment.