mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Merge branch 'release/1.0.2'
This commit is contained in:
		| @@ -9,7 +9,7 @@ The framework is provided as a Composer package which can be installed by adding | |||||||
| ```javascript | ```javascript | ||||||
| { | { | ||||||
| 	"require": { | 	"require": { | ||||||
| 		"lncd\OAuth2": "*" | 		"lncd/OAuth2": "*" | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
| ``` | ``` | ||||||
|   | |||||||
| @@ -1,8 +1,7 @@ | |||||||
| { | { | ||||||
| 	"name": "lncd/oauth2", | 	"name": "lncd/oauth2", | ||||||
| 	"description": "OAuth 2.0 Framework", | 	"description": "OAuth 2.0 Framework", | ||||||
| 	"version": "1.0.0", | 	"version": "1.0.2", | ||||||
| 	"version": "1.0.1", |  | ||||||
| 	"homepage": "https://github.com/lncd/OAuth2", | 	"homepage": "https://github.com/lncd/OAuth2", | ||||||
| 	"license": "MIT", | 	"license": "MIT", | ||||||
| 	"require": { | 	"require": { | ||||||
|   | |||||||
| @@ -1,12 +1,3 @@ | |||||||
| CREATE TABLE `oauth_client_endpoints` ( |  | ||||||
|   `id` int(11) unsigned NOT NULL AUTO_INCREMENT, |  | ||||||
|   `client_id` varchar(40) NOT NULL DEFAULT '', |  | ||||||
|   `redirect_uri` varchar(255) DEFAULT NULL, |  | ||||||
|   PRIMARY KEY (`id`), |  | ||||||
|   KEY `client_id` (`client_id`), |  | ||||||
|   CONSTRAINT `oauth_client_endpoints_ibfk_1` FOREIGN KEY (`client_id`) REFERENCES `oauth_clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE |  | ||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |  | ||||||
|  |  | ||||||
| CREATE TABLE `oauth_clients` ( | CREATE TABLE `oauth_clients` ( | ||||||
|   `id` varchar(40) NOT NULL DEFAULT '', |   `id` varchar(40) NOT NULL DEFAULT '', | ||||||
|   `secret` varchar(40) NOT NULL DEFAULT '', |   `secret` varchar(40) NOT NULL DEFAULT '', | ||||||
| @@ -15,15 +6,13 @@ CREATE TABLE `oauth_clients` ( | |||||||
|   PRIMARY KEY (`id`) |   PRIMARY KEY (`id`) | ||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
|  |  | ||||||
| CREATE TABLE `oauth_session_scopes` ( | CREATE TABLE `oauth_client_endpoints` ( | ||||||
|   `id` int(11) unsigned NOT NULL AUTO_INCREMENT, |   `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||||||
|   `session_id` int(11) unsigned NOT NULL, |   `client_id` varchar(40) NOT NULL DEFAULT '', | ||||||
|   `scope_id` int(11) unsigned NOT NULL, |   `redirect_uri` varchar(255) DEFAULT NULL, | ||||||
|   PRIMARY KEY (`id`), |   PRIMARY KEY (`id`), | ||||||
|   KEY `session_id` (`session_id`), |   KEY `client_id` (`client_id`), | ||||||
|   KEY `scope_id` (`scope_id`), |   CONSTRAINT `oauth_client_endpoints_ibfk_1` FOREIGN KEY (`client_id`) REFERENCES `oauth_clients` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | ||||||
|   CONSTRAINT `oauth_session_scopes_ibfk_5` FOREIGN KEY (`scope_id`) REFERENCES `oauth_scopes` (`id`) ON DELETE CASCADE, |  | ||||||
|   CONSTRAINT `oauth_session_scopes_ibfk_4` FOREIGN KEY (`session_id`) REFERENCES `oauth_sessions` (`id`) ON DELETE CASCADE |  | ||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
|  |  | ||||||
| CREATE TABLE `oauth_sessions` ( | CREATE TABLE `oauth_sessions` ( | ||||||
| @@ -51,3 +40,14 @@ CREATE TABLE `oauth_scopes` ( | |||||||
|   PRIMARY KEY (`id`), |   PRIMARY KEY (`id`), | ||||||
|   UNIQUE KEY `scope` (`scope`) |   UNIQUE KEY `scope` (`scope`) | ||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
|  |  | ||||||
|  | CREATE TABLE `oauth_session_scopes` ( | ||||||
|  |   `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | ||||||
|  |   `session_id` int(11) unsigned NOT NULL, | ||||||
|  |   `scope_id` int(11) unsigned NOT NULL, | ||||||
|  |   PRIMARY KEY (`id`), | ||||||
|  |   KEY `session_id` (`session_id`), | ||||||
|  |   KEY `scope_id` (`scope_id`), | ||||||
|  |   CONSTRAINT `oauth_session_scopes_ibfk_5` FOREIGN KEY (`scope_id`) REFERENCES `oauth_scopes` (`id`) ON DELETE CASCADE, | ||||||
|  |   CONSTRAINT `oauth_session_scopes_ibfk_4` FOREIGN KEY (`session_id`) REFERENCES `oauth_sessions` (`id`) ON DELETE CASCADE | ||||||
|  | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
		Reference in New Issue
	
	Block a user