Changeset 2276253
- Timestamp:
- 04/05/2020 08:10:49 AM (6 years ago)
- Location:
- jwt-ssolo
- Files:
-
- 4 added
- 2 edited
-
assets/auth-small.png (added)
-
assets/authlogo-big.jpg (added)
-
assets/images.zip (added)
-
assets/screenshot-1.jpg (added)
-
trunk/Readme.txt (modified) (3 diffs)
-
trunk/jwtlogin.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jwt-ssolo/trunk/Readme.txt
r2269015 r2276253 4 4 Tags: login, dgpr, authentication, secure login, jwt, token 5 5 Requires at least: 4.6 6 Tested up to: 5. 3.27 Stable tag: 1.5 6 Tested up to: 5.4 7 Stable tag: 1.5.2 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 24 24 1. Register your wordpress site on https://auth.ssolo.co.uk 25 25 2. download plugin and install it on WordPress from Plugin section 26 3. go to the admin dashboard, you can see the item menu Get AUTHconfig, click on it and insert the AUTH credential received after site registration27 4. You receive a servercode, you can use this code to register your users on AUTH server with the URL https://auth.ssolo.co.uk/ reguser.php?servercode=yourservercode26 3. go to the admin dashboard, you can see the item menu JWT getconfig, click on it and insert the AUTH credential received after site registration 27 4. You receive a servercode, you can use this code to register your users on AUTH server with the URL https://auth.ssolo.co.uk/auth/reguser.php?servercode=yourservercode 28 28 5 All done your WordPress now use a login secure server GDPR compliant. 29 29 … … 65 65 == Changelog == 66 66 67 = 1.5.2 = 68 * Add security check on caller hosts 69 67 70 = 1.5 = 68 71 * Implementation of JWT fase 2 -
jwt-ssolo/trunk/jwtlogin.php
r2268950 r2276253 3 3 /* 4 4 Plugin Name: JWT SSOLO plugin 5 Version: 1.5 5 Version: 1.5.2 6 6 Description: AUth2 authentication 7 7 Author: SSOLO ltd … … 19 19 20 20 function jwtl_checkTheUserAuthentication() { 21 #include "wpssoloauth-lib.php"; 22 #if(!function_exists('wp_get_current_user')) { 23 # include(ABSPATH . "wp-includes/pluggable.php"); 24 #} 21 22 23 25 24 include(ABSPATH . "wp-includes/pluggable.php"); 26 25 if (isset($_POST['log']) and !isset($_COOKIE[$user_id]) and !is_admin()) { 27 26 $username=sanitize_email($_POST['log']); 28 27 $password=sanitize_text_field($_POST['pwd']); … … 35 34 36 35 37 #echo "Tone session=".$session->token( 'token' );36 38 37 39 38 // try to log into the external service or database with username and password … … 89 88 header("Location:".get_page_link(MY_PROFILE_PAGE)); 90 89 } 91 90 } 92 91 } 93 92 // redirect for registration and lost password … … 263 262 } else { 264 263 $response = jwtl_GetLogin( $login_0,$password_1 ); 265 266 264 267 265 $valid=jwtl_ValidateToken($response['data']['token'],$response['data']['secret']); 268 266 269 267 // if external authentication was successful 270 268 if( $valid[0] == "invalid" ) { … … 285 283 } else { 286 284 $my_plugin = plugin_dir_path( __FILE__ ); 285 287 286 $servercode=$valid[6]; 288 287 $token=$response['data']['token'];
Note: See TracChangeset
for help on using the changeset viewer.