Nestjs-ory-integration Alternatives
Similar projects and alternatives to nestjs-ory-integration
-
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
-
-
Nest
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript ๐
-
mermaid
Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown
-
Ory Kratos
Next-gen identity server replacing your Auth0, Okta, Firebase with hardened security and PassKeys, SMS, OIDC, Social Sign In, MFA, FIDO, TOTP and OTP, WebAuthn, passwordless and much more. Golang, headless, API-first. Available as a worry-free SaaS with the fairest pricing on the market! (by ory)
-
Ory Keto
Open Source (Go) implementation of "Zanzibar: Google's Consistent, Global Authorization System". Ships gRPC, REST APIs, newSQL, and an easy and granular permission language. Supports ACL, RBAC, and other access models.
-
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
nestjs-ory-integration discussion
nestjs-ory-integration reviews and mentions
-
Integrate Ory in a NestJS application
To protect the routes, we will create the OryActionGuard that authenticates requests from Kratos webhooks and use the OryAuthenticationGuard (from @getlarge/kratos-client-wrapper) that authenticates users using the Kratos session.
-
Create NestJS libraries to interact with Ory API
// from https://github.com/getlarge/nestjs-ory-integration/blob/main/packages/kratos-client-wrapper/src/lib/ory-authentication.guard.ts // ... export const OryAuthenticationGuard = ( options: Partial = defaultOptions ): Type => { @Injectable() class AuthenticationGuard implements CanActivate { readonly logger = new Logger(AuthenticationGuard.name); constructor(readonly oryService: OryFrontendService) {} async canActivate(context: ExecutionContext): Promise { const { cookieResolver, sessionTokenResolver, isValidSession, postValidationHook, } = { ...defaultOptions, ...options, }; try { const cookie = cookieResolver(context); const xSessionToken = sessionTokenResolver(context); const { data: session } = await this.oryService.toSession({ cookie, xSessionToken, }); if (!isValidSession(session)) { return false; } if (typeof postValidationHook === 'function') { await postValidationHook.bind(this)(context, session); } return true; } catch (error) { this.logger.error(error); return false; } } } return mixin(AuthenticationGuard); };
Stats
The primary programming language of nestjs-ory-integration is TypeScript.