Comments (8)
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.
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.
@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.
Thanks for reporting this @steven-tey, we'll look into this issue.
from jackson.
@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.
@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.
@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.
@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)
- Active state gets saved incorrectly in jackson_store for Directory sync HOT 10
- Dark mode support for Admin Portal HOT 23
- SCIM - enterprise User extension support HOT 3
- Jackson NPM library cannot correctly POST to Azure ADFS via next-auth HOT 14
- IDP initiated SAML Login returns NextAuth `profile` as `undefined` HOT 12
- Incorrect type for `DirectorySyncEvent.data.active` HOT 6
- Critical dependency error in `typeorm` import trace HOT 6
- Update the README.md HOT 3
- Update the README.md HOT 5
- Star the Jackson Repository! π HOT 18
- Add a CONTRIBUTING.md to the Jackson repo HOT 4
- Break up npm into components to reduce size and dependencies
- Support Custom Postgres Schema HOT 2
- Make Setup Link Expiry Time Configurable HOT 5
- Provide method to close all connections opened by the npm library HOT 1
- Improve Well known URL pages (in both Jackson and Saas App) to categorize them into sections
- After using saml jackson and supplying the certs, application returns Invalid assertion signature on acs. HOT 1
- Can't authenticate when the server advertises authorization_response_iss_parameter_supported HOT 3
- mocksaml metadata doesn't have a SLO URL HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jackson.