Giter VIP home page Giter VIP logo

Comments (8)

steven-tey avatar steven-tey commented on June 10, 2024 2

Closing this issue for now since the solution above worked! Will let you guys know if I have any other questions / feedback about the setup! Thanks so much again! πŸ™

from jackson.

steven-tey avatar steven-tey commented on June 10, 2024 2

Sneak peek of the release: https://twitter.com/steventey/status/1688241881417973761

Dub.SAML.SSO.mp4

Massive shoutout to y'all for doing an amazing job at demystifying esoteric concepts like Enterprise SSO and Directory sync: https://twitter.com/steventey/status/1688241887076102144

from jackson.

deepakprabhakara avatar deepakprabhakara commented on June 10, 2024 1

@steven-tey Great to hear.:) We'll look at keeping everything in the same database and post back. Generally not an issue as long as the migrations don't conflict.

from jackson.

deepakprabhakara avatar deepakprabhakara commented on June 10, 2024

Thanks for reporting this @steven-tey, we'll look into this issue.

from jackson.

niwsa avatar niwsa commented on June 10, 2024

@steven-tey Could you provide more context around this? Are you hitting the same error while trying out a specific operation if so which one?

from jackson.

steven-tey avatar steven-tey commented on June 10, 2024

@niwsa I basically followed the instructions here to set up the missing tables (jackson_index, jackson_store and jackson_ttl) in the Prisma schema from the SaaS starter kit.

And I'm using the following as the JacksonOption (swapping out postgres for Planetscale MySQL):

const samlAudience = "https://saml.dub.sh";
const samlPath = "/api/auth/saml/acs";

const opts: JacksonOption = {
  externalUrl: process.env.NEXTAUTH_URL as string,
  samlPath,
  samlAudience,
  db: {
    engine: "sql",
    type: "mysql",
    url: process.env.DATABASE_URL as string,
    ssl: {
      rejectUnauthorized: false,
    },
  },
  idpEnabled: true,
  clientSecretVerifier: process.env.NEXTAUTH_SECRET as string,
};

I'm also curious if it's a best practice to use Jackson in the same database as your application's main database, or would it be better to use it in a separate database? If the latter, how do you make sure both databases are in sync?

from jackson.

deepakprabhakara avatar deepakprabhakara commented on June 10, 2024

@steven-tey Aah could you please try engine: "planetscale", - https://boxyhq.com/docs/jackson/deploy/service#planetscale

Regarding Jackson db it is ideal to keep it separate and run the migration scripts we provide. But you bring up a good point, we can add it to the Prisma schema of SaaS starter kit (cc: @niwsa @devkiran) so that is in sync. When we update the Jackson lib we can continue to keep the schema in sync.

from jackson.

steven-tey avatar steven-tey commented on June 10, 2024

@deepakprabhakara – ahh nice, that fixed it πŸ˜„

It looks like the SaaS starter kit has both the Jackson DB and the main DB (that uses the Prisma schema) in the same database – are there any downsides to that? I'm currently using Planetscale MySQL and would love to keep everything in one database if possible πŸ˜ƒ

from jackson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.