open-index/open-npm huggingface dataset:
npm package: @iqz/jwt-wrapper
Description: A wrapper for jsonwebtoken simplifying its configuration.
Author: IQZ Systems
Latest version: 2.0.1

# IQZ JWT Wrapper

A minimal configuration wrapper for [jsonwebtoken][link-jsonwebtoken]. Uses **only RS256** algorithm to sign the token, and hence requires a key pair.

## Installation

```
npm install -S @iqz/jwt-wrapper
```

## Usage

Import the utilities.

```typescript
import { JwtSign, JwtVerify, IJwtParams } from '@iqz/jwt-wrapper';
```

Initalize them as early in your app as possible.

```typescript
// Do the following where you'd like to sign your tokens.
JwtSign.Instance.init({
    sign: {
        privateKeyFile: 'path/to/private/key'
        expiryTimeSeconds: 60 * 60
    },
    issuer: 'Your domain',
    subject: 'Test Subject'
});

// Do the following where you'd like to verify your tokens.
JwtVerify.Instance.init({
    verify: {
        publicKeyFile: 'path/to/public/key.pub'
    },
    issuer: 'Your domain',
    subject: 'Test Subject'
});
```

Sign your tokens...

```typescript
let token = await JwtSign.Instance.getToken({ payload: 'Some string' }, 'testAud');
```

... and verify them!

```typescript
let payload = await JwtVerify.Instance.verifyToken(token, 'testAud'); // Returns { payload: 'Some string' } on successful verification.
```

[link-jsonwebtoken]: https://github.com/auth0/node-jsonwebtoken
npm package: @iqz/logger
Description: A wrapper for Winston which eases logging.
Author: IQZ Systems
Latest version: 1.3.0

# IQZ Logger

A wrapper for [WinstonJS][link-winston] with lots of configuration headaches already taken care of.

## Installation

```
npm install -S @iqz/logger
```

Logger includes TypeScript type definitions within the package, so you don't have to install anything in addition to the above.

## Usage

Import the logger

```typescript
import { LogLevel, AppLogger } from '@iqz/logger';
```

Create a string to hold the path where you want your logs to be created. Logger will create a _logs_ folder underneath the path.

```typescript
import * as path from 'path';
let currentDir = path.join('/', 'home', 'rajshrimohanks', 'Documents', 'works', 'test-proj');
```

Initialize your logger. You only need to do this once in your application.

```typescript
AppLogger.Log.init({
  console: {                // Optional. Remove if you don't want logging to console.
    level: LogLevel.SILLY   // Log level from which the content should be logged to the console.
  },
  file: {                   // Optional. Remove if you don't want logging to file.
    path: currentDir,       // Directory where the 'logs' folder should be created.
    level: LogLevel.SILLY,  // Log level from which the content should be logged to the log file.
    logAsJson: true,        // Should the output be logged as JSON or plain text. true - JSON; false - plain text
    maxFileCount: 5         // Maximum number of log files to be retained. Logger creates a new file for every individual day.
  }
});
```

Log your message!

```typescript
AppLogger.Log.error("This is an error message", { msg: 'hello' });
```

[link-winston]: https://github.com/winstonjs/winston
npm package: @iqz/oriole
Description: A NodeJS REST client for Magento 2 with full Typescript support.
Author: Rajshri Mohan K S
Latest version: 0.14.0

# Oriole

![npm (scoped)](https://img.shields.io/npm/v/@iqz/oriole.svg) ![GitHub](https://img.shields.io/github/license/iqz-systems/oriole.svg) ![GitHub last commit](https://img.shields.io/github/last-commit/iqz-systems/oriole.svg)

![oriole-logo][logo]

A NodeJS REST client for Magento 2 with full Typescript support.

This package is largely inspired by [Marko Nouvak][m-nouvak]'s [magento2-rest-client][magento2-rest-client] and [Divante Ltd][divante-ltd].'s [magento2-rest-client][magento2-rest-client-divante] packages. What they lacked was full Typescript support, which we've filled in, with some additional tweaks of our own.

This module also uses a full Typescript rewrite of [Ddo][ddo]'s [oauth-1.0a][oauth-1-a] module among others.

This is a **Work-in-Progress**. Only a subset of Magento's REST API is implemented. You can help by submitting a PR.

## Why _"Oriole"_?

We were building something else called as **Bluebird** when this one happened as a by-product. We wanted to have something similarly named. Magento's branding scheme is _orange_-ish (?) so we did a Google search for _"orange coloured birds"_ and an _"oriole"_ popped up in the results. Hence the name. :P

## Installation

```bash
npm install @iqz/oriole --save
```

## Usage

You will need to either create an "integration" with Magento 2 or obtain a user token.

To create an integration, you'll have to go to `System > Extensions > Integrations` and `Add New Integration` in the Magento 2 admin panel. Give a name and select the scope of the API and save it to obtain the OAuth keys. Then you can do:

```typescript
import { Oriole } from '@iqz/oriole';

const o = new Oriole({
  oauth: {
    consumerKey: '<your magento consumer key>',
    consumerSecret: '<your magento consumer secret>',
    accessToken: '<your magento access token>',
    accessTokenSecret: '<your magento access secret>'
  },
  url: 'http://localhost:8080/rest' // Put your URL here. It should end with '/rest'
});

console.log(await o.products.list('carrot'));   // Gets you a list of all products searchable by 'carrot'
```

If you are using a user token, replace the `oauth` property above with `bearer` property.

## Changelog

The changelog is available [here][changelog].

[changelog]: ./CHANGELOG.md

[m-nouvak]: https://github.com/nouvak

[ddo]: https://github.com/ddo

[divante-ltd]: https://github.com/DivanteLtd

[magento2-rest-client]: https://github.com/nouvak/magento2-rest-client

[magento2-rest-client-divante]: https://github.com/DivanteLtd/magento2-rest-client

[oauth-1-a]: https://github.com/ddo/oauth-1.0a

[logo]: ./logo.png
npm package: @ir-engine/authentication-oauth
Description: oAuth 1 and 2 authentication for Feathers. Powered by Grant.
Author: Feathers contributors
Latest version: 5.0.5

# @feathersjs/authentication-oauth

[![CI](https://github.com/feathersjs/feathers/workflows/CI/badge.svg)](https://github.com/feathersjs/feathers/actions?query=workflow%3ACI)
[![Download Status](https://img.shields.io/npm/dm/@feathersjs/authentication-oauth.svg?style=flat-square)](https://www.npmjs.com/package/@feathersjs/authentication-oauth)
[![Discord](https://badgen.net/badge/icon/discord?icon=discord&label)](https://discord.gg/qa8kez8QBx)

> OAuth 1 and 2 authentication for Feathers. Powered by Grant.

## Installation

```
npm install @feathersjs/authentication-oauth --save
```

## Documentation

Refer to the [Feathers oAuth authentication API documentation](https://feathersjs.com/api/authentication/oauth.html) for more details.

## License

Copyright (c) 2023 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)

Licensed under the [MIT license](LICENSE).