Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • Sign in / Register
Minds Backend - Engine
Minds Backend - Engine
  • Project overview
  • Repository
  • Issues 282
  • Merge Requests 38
  • CI / CD
  • Security & Compliance
  • Packages
  • Wiki
  • Snippets
  • Members
  • Collapse sidebar
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Minds
  • Minds Backend - EngineMinds Backend - Engine
  • Merge Requests
  • !400

Merged
Opened 1 week ago by Emiliano Balbuena@edgebal
Report abuse

SSO for Pro sites

Testing

  • Log out on Minds
  • Visit any Pro Domain site (standalone) - user should be logged out
  • Visit Minds
  • Log in on Minds
  • Visit any Pro Domain site - user should be logged in
  • Log out on the Pro Domain site
  • Visit Minds - user should be logged out
  • Visit any Pro Domain site
  • Log in on Pro Domain site
  • Visit Minds - user should be logged in

Note: This testing procedure is valid on browsers with 3rd-party cookies enabled. On other strict-security browsers (such as Brave), Minds and Pro Domain sessions are completely independent.

Sandbox

  • Minds: https://goal-pro-sso.minds.io/
  • Pro Domain: http://another-domain-goal-pro-sso.minds.io

Helm Chart (Sandbox deployment chart)

  • Check out this branch: https://gitlab.com/minds/helm-charts/tree/goal/pro-sso
  • Manually deploy: helm upgrade --install --reuse-values --recreate-pods --set features.pro=true --set jwtsecret="<something random here>" --wait goal-pro-sso ./minds/

Issues

  • Closes #1127 (closed)
Edited 1 day ago by Emiliano Balbuena
Request to merge goal/pro-sso into master
Pipeline #97403541 running for c1c6569a on goal/pro-sso
          Merge request approved. Approved by
          Mark Harding
          Mark Harding
          Xander Miller
          Xander Miller
          Martin Santangelo
          Martin Santangelo
          Ben Hayward
          Ben Hayward
          Guy Thouret
          Guy Thouret
          Brian Hatchet
          Brian Hatchet
          Marcelo Rivera
          Marcelo Rivera

          Merged by Mark Harding just now

          The changes were merged into master with bf751573

          The source branch has been deleted

          Closed #1127 (closed)

          Pipeline #97503995 running for bf751573 on master
                        • Discussion 6
                        • Commits 16
                        • Pipelines 13
                        • Changes 18
                        4/4 threads resolved
                        • Emiliano Balbuena @edgebal added Squad::Yellow scoped label 1 week ago

                          added scoped label

                        • Emiliano Balbuena @edgebal assigned to @edgebal 1 week ago

                          assigned to @edgebal

                        • Emiliano Balbuena @edgebal added 3 commits 1 week ago

                          added 3 commits

                          • aacc7678...cc738264 - 2 commits from branch master
                          • cd9a4013 - Merge remote-tracking branch 'origin/master' into goal/pro-sso

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 6 days ago

                          added 1 commit

                          • 3de850e7 - (feat): SSO

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 2 commits 6 days ago

                          added 2 commits

                          • f74f5014 - (chore): Remove unused things
                          • 1f14506e - (fix): 500 when no Session

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 6 days ago

                          added 1 commit

                          • e4e5e0ea - (feat): Destroy SSO key after use

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 3 commits 5 days ago

                          added 3 commits

                          • e4e5e0ea...d592fd9d - 2 commits from branch master
                          • c2c95dfd - Merge remote-tracking branch 'origin/master' into goal/pro-sso

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 5 days ago

                          added 1 commit

                          • ef3d7433 - (chore): Allow SSO from root domains

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 5 days ago

                          added 1 commit

                          • 1155faab - (feat): Domain enforce; (test): Spec test

                          Compare with previous version

                        • Emiliano Balbuena @edgebal unmarked as a Work In Progress 5 days ago

                          unmarked as a Work In Progress

                        • Emiliano Balbuena @edgebal added MR::Awaiting Review scoped label 5 days ago

                          added scoped label

                        • Emiliano Balbuena @edgebal mentioned in merge request front!656 5 days ago

                          mentioned in merge request front!656

                        • Emiliano Balbuena @edgebal changed the description 5 days ago

                          changed the description

                        • Emiliano Balbuena @edgebal mentioned in issue #961 5 days ago

                          mentioned in issue #961

                        • Emiliano Balbuena @edgebal mentioned in issue front#2236 (closed) 5 days ago

                          mentioned in issue front#2236 (closed)

                        • Mark Harding
                          Mark Harding @markeharding started a thread on an old version of the diff 2 days ago
                          Resolved by Emiliano Balbuena 11 hours ago
                        • Emiliano Balbuena @edgebal added 13 commits 1 day ago

                          added 13 commits

                          • 1155faab...52a592b9 - 11 commits from branch master
                          • d9f6f766 - (chore): Pro Delegate types
                          • cf4c1059 - Merge remote-tracking branch 'origin/master' into goal/pro-sso

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 1 day ago

                          added 1 commit

                          • fd91559b - (fix): Origin's scheme should have more relevance for CORS

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 1 day ago

                          added 1 commit

                          • 552ccf2f - (chore): Log authorization exceptions

                          Compare with previous version

                        • Emiliano Balbuena @edgebal added 1 commit 1 day ago

                          added 1 commit

                          • 3ad92c52 - (fix): Use Origin for SSO authorize

                          Compare with previous version

                        • Emiliano Balbuena @edgebal changed the description 1 day ago

                          changed the description

                        • Xander Miller @xander-miller approved this merge request 16 hours ago

                          approved this merge request

                        • Xander Miller
                          Xander Miller @xander-miller · 16 hours ago
                          Developer

                          I tested on Chrome and Brave. I actually found that the system work just as well on Brave as it did on Chrome even with the shield turned on.

                          http://another-domain-goal-pro-sso.minds.io https://goal-pro-sso.minds.io/

                          I'm guessing that Brave shield might be smart enough to detect that both domains are minds.io but I'm not sure what's going on.

                        • Mark Harding
                          Mark Harding @markeharding started a thread on an old version of the diff 14 hours ago
                          Resolved by Emiliano Balbuena 11 hours ago
                        • Mark Harding
                          Mark Harding @markeharding started a thread on an old version of the diff 14 hours ago
                          Resolved by Emiliano Balbuena 11 hours ago
                        • Mark Harding
                          Mark Harding @markeharding started a thread on an old version of the diff 14 hours ago
                          Resolved by Emiliano Balbuena 11 hours ago
                        • Mark Harding @markeharding added MR::Requires Changes scoped label and automatically removed MR::Awaiting Review label 13 hours ago

                          added scoped label and automatically removed label

                        • Emiliano Balbuena @edgebal added 2 commits 11 hours ago

                          added 2 commits

                          • 2dd9da6b - (fix): Constant typo
                          • c1c6569a - (refactor): Domain check to Manager

                          Compare with previous version

                        • Emiliano Balbuena @edgebal resolved all threads 11 hours ago

                          resolved all threads

                        • Emiliano Balbuena @edgebal added MR::Awaiting Review scoped label and automatically removed MR::Requires Changes label 11 hours ago

                          added scoped label and automatically removed label

                        • Xander Miller
                          Xander Miller @xander-miller · 10 hours ago
                          Developer

                          Tested again. Still good.

                        • Xander Miller @xander-miller approved this merge request 10 hours ago

                          approved this merge request

                        • Mark Harding @markeharding approved this merge request just now

                          approved this merge request

                        • Mark Harding @markeharding merged just now

                          merged

                        • Mark Harding @markeharding mentioned in commit bf751573 just now

                          mentioned in commit bf751573

                        Please register or sign in to reply
                        Assignee
                        Emiliano Balbuena's avatar
                        Emiliano Balbuena @edgebal
                        None
                        Milestone
                        None
                        Time tracking
                        No estimate or time spent
                        2
                        Labels
                        MR::Awaiting Review Squad::Yellow
                        Lock merge request
                        Unlocked
                        10
                        10 participants
                        user avatar
                        Martin Santangelo
                        user avatar
                        Ben Hayward
                        user avatar
                        Guy Thouret
                        user avatar
                        Brian Hatchet
                        user avatar
                        Marcelo Rivera
                        user avatar
                        Olivia Madrid
                        user avatar
                        Rami Albatal
                        Reference: minds/engine!400