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. ๐Ÿ‘ ๐Ÿ‘ ๐Ÿ‘

Top comments (0)