New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vcita/oauth-client-nestjs

Package Overview
Dependencies
Maintainers
3
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vcita/oauth-client-nestjs

Oauth2 Generic Vcita Integration

  • 1.5.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
101
decreased by-17.89%
Maintainers
3
Weekly downloads
 
Created
Source

oauth-client-nestjs

This package includes client oauth authentication module based upon nest. This package includes vcita authentication, and can also interact with additional providers.

Installation

install this package using npm in nest app. You should add these env variables (you can add then on .env file):

  • VCITA_CLIENT_ID
  • VCITA_CLIENT_SECRET
  • VCITA_AUTHORIZATION_CLIENT: client authorization url
  • VCITA_APP_SERVER: vcita api server
  • APPLICATION_URL

Usage

This is a dynamic module. To use it you should call register method:

OauthModule.register({ })

register configuration (all of then are optional)

  • useApplicationConnection: boolean, use existing db connection or not.
  • databaseConfig: if not using database connection, db connection settings.
  • oauthConfig: a config object that includes oauth config for another provider, and target endpoint for vcita oauth - if different from 'vcita'
  • logger: a logger for the app.

When using app db, the oauth package uses typeorm, so you should add some staff tou your config files:

  • add this: "node_modules/@vcita/oauth-client-nestjs/**/.entity{.ts,.js}" to you entity array of typeorm config.
  • (or:) add OauthData to entities array (db config file) Then you need to generate migration, and run it.

Keywords

FAQs

Package last updated on 26 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc