mirror of
				https://github.com/webmasterskaya/joomla-oauth-server.git
				synced 2025-10-31 07:43:22 +03:00 
			
		
		
		
	Remove keys pair generations
This commit is contained in:
		
							parent
							
								
									6c1ae655cd
								
							
						
					
					
						commit
						b584ecbcbf
					
				| @ -89,21 +89,6 @@ class LoginController extends BaseController | ||||
| 
 | ||||
|         $params = ComponentHelper::getParams('com_oauthserver'); | ||||
| 
 | ||||
|         //TODO: Этот код нужно вынести в отдельный хелпер, для генерации закрытого и открытого ключей
 | ||||
|         if (false) | ||||
|         { | ||||
|             /** @noinspection PhpUnreachableStatementInspection */ | ||||
|             $key = openssl_pkey_new([ | ||||
|                 "digest_alg"       => "sha512", | ||||
|                 "private_key_bits" => 4096, | ||||
|                 "private_key_type" => OPENSSL_KEYTYPE_RSA, | ||||
|             ]); | ||||
|             openssl_pkey_export($key, $private_key); | ||||
|             // Extract the public key from $res to $pubKey
 | ||||
|             $pub = openssl_pkey_get_details($key); | ||||
|             $pub = $pub["key"]; | ||||
|         } | ||||
| 
 | ||||
|         if ($params->get('key_method_paste')) | ||||
|         { | ||||
|             $private_key = $params->get('private_key_raw'); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user