PHPackages                             stefna/islandis-auth - 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. stefna/islandis-auth

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

stefna/islandis-auth
====================

Library to do auth against island.is

1.4.0(4y ago)51.5k1MITPHPPHP ^7.1 || ^8.0

Since Jan 11Pushed 2y ago5 watchersCompare

[ Source](https://github.com/stefna/islandis-auth)[ Packagist](https://packagist.org/packages/stefna/islandis-auth)[ RSS](/packages/stefna-islandis-auth/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (4)Versions (18)Used By (0)

Island.is login
===============

[](#islandis-login)

Library to make it easier to handle logging in with island.is

To get started with Island.is Identification and Authentication Services (IAS) you'll need to apply: .

How it works
------------

[](#how-it-works)

The token the Ísland.is IAS returns to the service provider(you), for decoding by the service provider, is a digitally signed SAML 2 token encoded in Base 64 and UTF-8.

The SAML message returned by IAS will be digitally signed with a certificate issued by Traustur bunadur. Furthermore, the message will have been transformed with xml-exc-c14n, prior to being digested with SHA256 and signed with a 2048-bit RSA key.

This library helps with validating and verifying the SAML token, and the provided signature.

If you want more information about how this work you can read the technical specification here:

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

[](#installation)

```
composer require stefna/islandis-auth

```

Usage
-----

[](#usage)

### Example usage

[](#example-usage)

```
