2017 © Pedro Peláez
 

library solopenidclient

Lightweight PHP5+ library for easy SOL OpenID authentication.

image

scoutingrudyardkipling/solopenidclient

Lightweight PHP5+ library for easy SOL OpenID authentication.

  • Tuesday, May 8, 2018
  • by frankkuipers
  • Repository
  • 4 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 80 % Grown

The README.md

Scouting Nederland OpenId Client

Installatie

Deze package is met composer toe te voegen middels het volgende commando:, (*1)

composer require scoutingrudyardkipling/solopenidclient

Voorbeeld (Laravel 5.x)

public function login(Illuminate\Http\Request $request)
{
    $openid = new \ScoutingRudyardKipling\SOLOpenIdClient('http://your-return-url.nl');

    if (!$openid->mode && $request->has('username')) {
        $username = $request->input('username');

        return \Redirect::to($openid->setUserIdentity($username)->authUrl());
    } elseif (!!$openid->mode) {
        if ($openid->mode == 'cancel') {
            // user cancelled logging in
        } elseif ($openid->validate()) {
            // user login confirmed by Scouting Nederland, let's proceed!

            $user = $openid->getValidatedUser();

            // Either create a new user or link the returned SNL-user to one of your registered users.
            // Notice that SNL only confirmed that the user is who it claims to be and that he/she is an active
            // member of Scouting Nederland. You have to deal with authorisation yourself for instance to make sure
            // the authenticated user is a member of your scouting club.

        } else {
            // login failed
        }
    } else {
        // show a form where the user can provide his/her SNL username
    }
}

The Versions

08/05 2018

dev-master

9999999-dev https://github.com/ScoutingRudyardKipling/SOLAuthenticator

Lightweight PHP5+ library for easy SOL OpenID authentication.

  Sources   Download

MIT

The Requires

 

laravel authentication security openid scouting scoutingnederland

08/05 2018

1.0.1

1.0.1.0 https://github.com/ScoutingRudyardKipling/SOLAuthenticator

Lightweight PHP5+ library for easy SOL OpenID authentication.

  Sources   Download

MIT

The Requires

 

laravel authentication security openid scouting scoutingnederland

08/05 2018

1.0.0

1.0.0.0 https://github.com/ScoutingRudyardKipling/SOLAuthenticator

Lightweight PHP5 library for easy SOL OpenID authentication.

  Sources   Download

MIT

The Requires

  • php >=5.2

 

authentication security openid