PHPackages                             ossipesonen/azureadb2ctokenvalidator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. ossipesonen/azureadb2ctokenvalidator

AbandonedArchivedLibrary[Authentication &amp; Authorization](/categories/authentication)

ossipesonen/azureadb2ctokenvalidator
====================================

Simple Azure AD B2C access token validator

1.0.1(4y ago)47.9k[1 issues](https://github.com/OssiPesonen/AzureADB2CTokenValidator/issues)MITPHPPHP &gt;=7.4

Since Aug 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/OssiPesonen/AzureADB2CTokenValidator)[ Packagist](https://packagist.org/packages/ossipesonen/azureadb2ctokenvalidator)[ RSS](/packages/ossipesonen-azureadb2ctokenvalidator/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (8)Used By (0)

AzureADB2CTokenValidator
========================

[](#azureadb2ctokenvalidator)

A simple implementation of Azure AD B2C token validation with PHP. The trick with AD B2C is to fetch your tenant keys to calculate a public key with the modulus and exponent. For this we use the PublicKeyLoader from phpseclib3.

Requirements
------------

[](#requirements)

- PHP 7.1

Installation
------------

[](#installation)

```
composer require ossipesonen/azureadb2ctokenvalidator

```

How to use
----------

[](#how-to-use)

```
