DEV Community

Chuck
Chuck

Posted on

An OIDC authentication library that supports self hosting and has complete test cases

https://github.com/chuck1in/nw-auth

Made an identity authentication library based on the OIDC process, which supports third-party platforms such as GitHub, WeChat, Google, Twitter, Feishu, and Sina. In theory, it also supports self-deployed OIDC authentication servers. Since it has not been advertised, I don't know if any users are using it.

πŸŽ‰ The features of this library are as follows:

  • πŸ’ Small code size
  • πŸ‹ Few exposed interfaces
  • πŸ₯ No runtime dependencies

Recently, I used my spare time to add a self-test page to this library, which is convenient for everyone to confirm whether the three-party login function of the library can operate normally through the visual interface.

seflhost-test

This page is made with sveltekit. I don't specialize in front-end. I didn't think there was much work, but it ended up taking a lot of time and effort.

If you find this library useful, I hope you can give me some ⭐ for encouragement. Thank you for your support.

If you are willing to contribute code to this library, you can simply add more third-party login platforms based on the existing structure. πŸ‘ πŸ‘ πŸ‘

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs