
implemented http://openid.net/specs/openid-simple-registration-extension-1_0.html Change-Id: I0b3b3c70b4eacc6ea95932f7a3ed1c522a26b1e4
63 lines
2.1 KiB
PHP
63 lines
2.1 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Models\OpenId\ServerExtension;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class UpdateServerExtensions extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
DB::table('server_extensions')->delete();
|
|
|
|
ServerExtension::create(
|
|
array(
|
|
'name' => 'AX',
|
|
'namespace' => 'http://openid.net/srv/ax/1.0',
|
|
'active' => true,
|
|
'extension_class' => \OpenId\Extensions\Implementations\OpenIdAXExtension::class,
|
|
'description' => 'OpenID service extension for exchanging identity information between endpoints',
|
|
'view_name' =>'extensions.ax',
|
|
)
|
|
);
|
|
|
|
ServerExtension::create(
|
|
array(
|
|
'name' => 'SREG',
|
|
'namespace' => 'http://openid.net/extensions/sreg/1.1',
|
|
'active' => true,
|
|
'extension_class' => \OpenId\Extensions\Implementations\OpenIdSREGExtension::class,
|
|
'description' => 'OpenID Simple Registration is an extension to the OpenID Authentication protocol that allows for very light-weight profile exchange.',
|
|
'view_name' => 'extensions.sreg',
|
|
)
|
|
);
|
|
|
|
ServerExtension::create(
|
|
array(
|
|
'name' => 'OAUTH2',
|
|
'namespace' => 'http://specs.openid.net/extensions/oauth/2.0',
|
|
'active' => true,
|
|
'extension_class' => \OpenId\Extensions\Implementations\OpenIdOAuth2Extension::class,
|
|
'description' => 'The OpenID OAuth2 Extension describes how to make the OpenID Authentication and OAuth2 Core specifications work well together.',
|
|
'view_name' => 'extensions.oauth2',
|
|
)
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
}
|