diff --git a/Plugin.php b/Plugin.php index 8a9c1ba..61156c5 100644 --- a/Plugin.php +++ b/Plugin.php @@ -45,12 +45,17 @@ public function getPluginAuthor() public function getPluginVersion() { - return '1.0.0'; + return '1.0.1'; } public function getPluginHomepage() { return 'https://github.com/kanboard/plugin-oauth2'; } + + public function getCompatibleVersion() + { + return '>=1.0.37'; + } } diff --git a/README.md b/README.md index 3b598bb..126ac5f 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Author Requirements ------------ -- Kanboard >= 1.0.34 +- Kanboard >= 1.0.37 Installation ------------ @@ -52,6 +52,9 @@ Copy those values in the Kanboard's settings. - **Email Key**: Key used to fetch the user email - **User ID Key**: Key used to fetch the unique user ID +Examples +-------- + Example for Github OAuth2: - **Authorize URL**: `https://github.com/login/oauth/authorize` diff --git a/Template/auth/login.php b/Template/auth/login.php index 99f4ad3..02d6308 100644 --- a/Template/auth/login.php +++ b/Template/auth/login.php @@ -1,6 +1,5 @@ diff --git a/Template/config/integration.php b/Template/config/integration.php index cee6634..264ce61 100644 --- a/Template/config/integration.php +++ b/Template/config/integration.php @@ -1,6 +1,5 @@

-
- +
form->label(t('Callback URL'), 'oauth2_callback_url') ?> diff --git a/Template/user/external.php b/Template/user/external.php index a7c842e..5592bb3 100644 --- a/Template/user/external.php +++ b/Template/user/external.php @@ -1,13 +1,13 @@

-

-user->isCurrentUser($user['id'])): ?> - - url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?> +

+ user->isCurrentUser($user['id'])): ?> + + url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?> + + url->link(t('Unlink my OAuth2 account'), 'OAuthController', 'unlink', array('backend' => 'OAuth2'), true) ?> + - url->link(t('Unlink my OAuth2 account'), 'OAuthController', 'unlink', array('backend' => 'OAuth2'), true) ?> + - - - -

+