Skip to content

pedroharbs/auth-wrapper

 
 

Repository files navigation

Cognite logo

@cognite/auth-wrapper

codecov

The @cognite/auth-wrapper is an OpenID Connect/OAuth 2.0 Wrapper library written in js that provides a convenient way to retrieve access token from any IdP that meets the openid pattern. You can use on client-side or server-side with JavaScript applications.

Getting Started

There are some guides to help you to start using any of our available authentication methods. The guides are at authentication.md.

Samples

There are small bare-bones typescript projects in the samples/ directory. They show how to include to retrieve a token with cognite Auth Wrapper by different methods. The samples' README.md has instructions for running the samples.

License

Apache 2.0

Contributing

Contributions welcome! For details about commiting changes, automated versioning and releases, see Contributing.

Testing

This repo contains some integration tests that require some IdP credentials to run. You can use your own IdP credentials, talk to any of the contributors or leave an issue and it'll get sorted. Github Actions will run the test and has its own api key.

Run tests:

npm install
npm test

We use jest to run tests, see their documentation for more information.

Changelog

Wondering about upcoming or previous changes to the auth-wrapper? Take a look at the CHANGELOG.

Versioning

The libraries follow Semantic Versioning. Package versions are updated automatically and individually based on commit messages.

About

A OpenID Connect/OAuth 2.0 auth wrapper.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 99.9%
  • JavaScript 0.1%