npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nullcare/azure-ad-react

v0.1.2-beta.8

Published

Azure AD authentication for React

Downloads

36

Readme

Azure AD Authentication Library for React/Next

This is not an official microsoft package.

npm version npm version

| Getting Started | npm | Azure AD Docs | Official msal Repo | | ------------------------------------------ | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |

  1. About
  2. Prerequisites
  3. Installation
  4. Build and Test
  5. Usage
  6. License

About

@nullcare/azure-ad-react is a powerful authentication library for React and Next.js applications that enables seamless integration with Azure Active Directory (Azure AD) for secure authentication and authorization workflows. The library utilizes the official Microsoft Authentication Library for React (MSAL React) and Microsoft Authentication Library for JavaScript (MSAL Browser) packages as peer dependencies, ensuring robust and reliable authentication capabilities.

Key Features

  • Simplified Authentication: @nullcare/azure-ad-react aims to streamline the process of implementing Azure AD authentication in React/Next.js applications by abstracting away much of the complexity associated with the official MSAL packages. This allows developers to focus on building features rather than dealing with authentication intricacies.

  • Peer Dependency on Official MSAL Packages: By relying on MSAL React and MSAL Browser as peer dependencies, @nullcare/azure-ad-react ensures that it stays up-to-date with the latest Microsoft authentication standards and practices. This guarantees compatibility with Azure AD's evolving authentication protocols.

  • Effortless Configuration: The library provides straightforward configuration options that make it easy to set up and customize Azure AD authentication for your application. With just a few lines of code, developers can establish a secure authentication flow tailored to their specific needs.

  • Reusable Components and Hooks: @nullcare/azure-ad-react exposes a set of reusable components and hooks that simplify authentication-related tasks. These components allow developers to easily create login, logout, and conditional rendering logic based on a user's authentication status or role.

Why Choose @nullcare/azure-ad-react?

Azure AD integration is a crucial aspect of building modern web applications that require secure user authentication and authorization. However, dealing with the intricacies of authentication protocols and token management can be daunting, especially for developers who are not well-versed in Azure AD.

@nullcare/azure-ad-react addresses this challenge by providing a user-friendly and developer-centric approach to Azure AD authentication. Whether you are building a single-page application, a multi-page application, or a server-rendered application with Next.js, this library simplifies the process of adding Azure AD authentication, allowing you to focus on delivering exceptional user experiences.

Prerequisites

Before you can start using @nullcare/azure-ad-react to enable Azure AD authentication in your React or Next.js application, ensure you have met the following prerequisites:

  1. Client-Side Usage: @nullcare/azure-ad-react is designed to be used on the client side of your application.

  2. Azure AD App Registration: To authenticate users with Azure AD, you need to register your application in the Azure AD portal. This registration process will provide you with a valid clientId that you will use for configuration. Follow the steps outlined in the Azure AD Documentation to register your application and obtain the required clientId.

By fulfilling these prerequisites, you'll be ready to integrate @nullcare/azure-ad-react seamlessly into your React or Next.js application and leverage the power of Azure AD authentication for enhanced security and user experiences.

Installation

npm install @nullcare/azure-ad-react
# or
yarn add @nullcare/azure-ad-react

Build and Test

See the contributing.md file for more information.

Building the package locally

To build the @nullcare/azure-ad-react library, you can do the following:

# Install dev dependencies from root of repo
yarn

# To build the package
yarn build

Running Tests

@nullcare/azure-ad-react uses jest to run unit tests and coverage.

# To run tests
yarn test

# To run tests with code coverage
yarn test:coverage

Usage

For help getting started with @nullcare/azure-ad-react please see our getting started doc.

License

Licensed under the MIT License.