{"id":36189,"date":"2015-05-08T13:18:21","date_gmt":"2015-05-08T13:18:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-jwt-auth\/"},"modified":"2017-11-28T14:16:16","modified_gmt":"2017-11-28T14:16:16","slug":"wp-jwt-auth","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-jwt-auth\/","author":14411958,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.3","stable_tag":"trunk","tested":"4.1.42","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Wordpress JWT Authentication [DEPRECATED]","header_author":"Auth0","header_description":"","assets_banners_color":"a6a6a6","last_updated":"2017-11-28 14:16:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/auth0.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2887,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1246808","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1246808","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1246853","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1246853","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1556,710,38851,602,2061],"plugin_category":[38],"plugin_contributors":[83985,83986],"plugin_business_model":[],"class_list":["post-36189","plugin","type-plugin","status-closed","hentry","plugin_tags-api","plugin_tags-authentication","plugin_tags-jwt","plugin_tags-login","plugin_tags-oauth","plugin_category-authentication","plugin_contributors-auth0","plugin_contributors-glena","plugin_committers-auth0","plugin_committers-glena"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-jwt-auth_a6a6a6.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>DEPRECATED - This library is no longer maintained\/supported.<\/p>\n\n<p>This plugin targets to add a easy way to authenticate your APIs using JWT.<\/p>\n\n<p>Also, it provides a basic way to match the users and allow you to extend base on your needs easily with a filter.<\/p>\n\n<p>How it works<\/p>\n\n<p>This plugin will check the headers of the requests and if there is an <code>Authorization<\/code> header will try to log in a user that matches. So it is as easy to check for the current user to authenticate users in your own API.<\/p>\n\n<p>Also, it provides support for the following plugins:\n- http:\/\/wp-api.org\/\n- http:\/\/docs.woothemes.com\/document\/woocommerce-rest-api\/<\/p>\n\n<p>And any other that extends <code>Wp Rest Api<\/code> like http:\/\/tweichart.github.io\/JSON-API-for-BuddyPress\/ for BuddyPress.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install from the WordPress Store or upload the entire <code>wp-jwt-aith<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Access to the plugin settings and configure the keys and how should it match the users.<\/li>\n<\/ol>\n\n<ul>\n<li>Aud: represents the client id which the JWT was sent.<\/li>\n<li>Secret: used to verify the JWT signature<\/li>\n<li>Base64 Secret Encoded: it must be active if the secret is base64 encoded and needs to be decoded before checkig the signature.<\/li>\n<li>User Property: is the property which much match with the JWT attribute to determine the user.<\/li>\n<li>JWT Attribute: should match the User Property to determine the user.<\/li>\n<\/ul>\n\n<p>or extend it implementing a filter:<\/p>\n\n<p>add_filter( 'wp_jwt_auth_get_user', 'get_user',10);<\/p>\n\n<p>function get_user($jwt) {\n  ...\n}<\/p>\n\n<p>To see an example, check the UsersRepo (https:\/\/github.com\/auth0\/wp-jwt-auth\/blob\/master\/lib\/JWT_AUTH_UsersRepo.php).<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Install from the WordPress Store or upload the entire <code>wp-jwt-aith<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Access to the plugin settings and configure the keys and how should it match the users.<\/li>\n<\/ol>\n\n<ul>\n<li>Aud: represents the client id which the JWT was sent.<\/li>\n<li>Secret: used to verify the JWT signature<\/li>\n<li>Base64 Secret Encoded: it must be active if the secret is base64 encoded and needs to be decoded before checkig the signature.<\/li>\n<li>User Property: is the property which much match with the JWT attribute to determine the user.<\/li>\n<li>JWT Attribute: should match the User Property to determine the user.<\/li>\n<\/ul>\n\n<p>or extend it implementing a filter:<\/p>\n\n<p>add_filter( 'wp_jwt_auth_get_user', 'get_user',10);<\/p>\n\n<p>function get_user($jwt) {\n  ...\n}<\/p>\n\n<p>To see an example, check the UsersRepo (https:\/\/github.com\/auth0\/wp-jwt-auth\/blob\/master\/lib\/JWT_AUTH_UsersRepo.php).<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Authenticate your APIs with JWT easily.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/36189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=36189"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/glena"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=36189"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=36189"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=36189"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=36189"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=36189"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=36189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}