{"id":2103,"date":"2021-08-27T14:48:51","date_gmt":"2021-08-27T12:48:51","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/?p=2103"},"modified":"2024-04-21T13:07:33","modified_gmt":"2024-04-21T11:07:33","slug":"github-support-for-password-authentication-was-removed-on-august-13-2021","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/github-support-for-password-authentication-was-removed-on-august-13-2021","title":{"rendered":"GitHub \u2013 Support for password authentication was removed on August 13, 2021."},"content":{"rendered":"<h2><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2104\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/jeedomgithub.png\" alt=\"\" width=\"780\" height=\"152\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/jeedomgithub.png 780w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/jeedomgithub-600x117.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/jeedomgithub-300x58.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/jeedomgithub-768x150.png 768w\" sizes=\"auto, (max-width: 780px) 100vw, 780px\" \/><\/h2>\n<p><em><strong>If like me you synchronize your Repository GitHub with your Jeedom development, you encounter since August 13, 2021 a new error.<\/strong><\/em><\/p>\n<h2><!--more-->Error message<\/h2>\n<p>remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.<br \/>\nremote: Please see https:\/\/github.blog\/2020-12-15-token-authentication-requirements-for-git-operations\/ for more information.<br \/>\nfatal: Authentication failed for \u2018https:\/\/github.com\/xx\/\u2019<\/p>\n<h2>Explanation<\/h2>\n<p>As of 13 August 2021, Github no longer accepts account passwords when authenticating Git operations on GitHub.com.<\/p>\n<p><span class=\"\">They require the use of token-based authentication. <\/span><span class=\"\">as a personal access token<\/span><span class=\"\"> (for developers) or an OAuth or GitHub App installation token (for integrators) for all Git operations authenticated on GitHub.com. <\/span>You can also continue to use SSH keys if you prefer.<\/p>\n<h2>How do we get out of this?<\/h2>\n<p>I initially tried to create private\/public SSH keys that are configured on Github, all this is accepted but the difficulty is that the SSH link, it is between your Jeedom and Github and not between your computer and Jeedom. I gave up this lead. If someone finds it like making an SSH link between Jeedom and Github on the command line, I am a taker of the info.<\/p>\n<p>So I tried to find out how the Tokens worked and found that using the Token instead of the password on the command line the Push worked!!! <em><strong>Eureka<\/strong> <\/em>!!<\/p>\n<p>Here is the manip:<\/p>\n<h2>Generate access token<\/h2>\n<p>Personal access tokens are an alternative to using passwords for authentication with GitHub when using the GitHub API or the . command line<\/p>\n<p>As a security measure, GitHub automatically removes personal access tokens that have not been used in a year. To provide additional security, GitHub strongly recommends adding an expiration to your personal access tokens (which I do not)<\/p>\n<ul>\n<li><a href=\"https:\/\/docs-github-com.translate.goog\/en\/github\/getting-started-with-github\/verifying-your-email-address?_x_tr_sl=en&amp;_x_tr_tl=fr&amp;_x_tr_hl=fr&amp;_x_tr_pto=ajax,elem\">Check your email address<\/a> , if it has not yet been verified.<\/li>\n<li><span class=\"\">In the top right corner of any page, click on your profile picture and then on <\/span><strong><span class=\"\">Settings<\/span><\/strong><span class=\"\">.<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2105\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/github1.png\" alt=\"\" width=\"220\" height=\"510\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/github1.png 220w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/github1-129x300.png 129w\" sizes=\"auto, (max-width: 220px) 100vw, 220px\" \/><\/p>\n<ul>\n<li><span class=\"\">In the left sidebar, click <strong>Developer settings<\/strong><br \/>\n<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2106\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-27-02-Build-software-better-together.png\" alt=\"\" width=\"248\" height=\"428\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-27-02-Build-software-better-together.png 248w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-27-02-Build-software-better-together-174x300.png 174w\" sizes=\"auto, (max-width: 248px) 100vw, 248px\" \/><\/p>\n<p>Then <strong>Personal access tokens<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2107\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-27-47-Build-software-better-together.png\" alt=\"\" width=\"248\" height=\"133\" \/><\/p>\n<ul>\n<li><span class=\"\">Click on <\/span><strong><span class=\"\">Generate New Token<\/span><\/strong><span class=\"procedural-image-wrapper\"><img decoding=\"async\" src=\"https:\/\/docs.github.com\/assets\/images\/help\/settings\/generate_new_token.png\" alt=\"Generate New Token Button\" \/><\/span><\/li>\n<li>Give your token a descriptive name.<\/li>\n<li>To assign an expiry date to your token.<\/li>\n<li>Select the scopes or permissions you want to grant to this token. To use your token to access repositories from the command line, select <strong>repo<\/strong> .<span class=\"procedural-image-wrapper\"><img decoding=\"async\" src=\"https:\/\/docs.github.com\/assets\/images\/help\/settings\/token_scopes.gif\" alt=\"Selection of Token Ranges\" \/><\/span><\/li>\n<li>Click on <strong>Generate<\/strong>.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2108\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-30-25-Build-software-better-together.png\" alt=\"\" width=\"784\" height=\"293\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-30-25-Build-software-better-together.png 784w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-30-25-Build-software-better-together-600x224.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-30-25-Build-software-better-together-300x112.png 300w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-30-25-Build-software-better-together-768x287.png 768w\" sizes=\"auto, (max-width: 784px) 100vw, 784px\" \/><\/p>\n<h2>Retrieve the Access Token<\/h2>\n<p>At the end of the generation, Githug gives the access token, if you have failed to copy it at the right time, you can generate another one:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2109\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-32-55-Build-software-better-together.png\" alt=\"\" width=\"749\" height=\"119\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-32-55-Build-software-better-together.png 749w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-32-55-Build-software-better-together-600x95.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/Screenshot-2021-08-27-at-14-32-55-Build-software-better-together-300x48.png 300w\" sizes=\"auto, (max-width: 749px) 100vw, 749px\" \/><\/p>\n<h2>Use of Access Token<\/h2>\n<p>It is very simple, it is used instead of the password (login has not changed).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2110\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/github2.png\" alt=\"\" width=\"546\" height=\"38\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/github2.png 546w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2021\/08\/github2-300x21.png 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<h2>Info Bonus<\/h2>\n<p>To avoid having to constantly retype your passwords, here are two commands that you can include in your MobaXtrem scripts:<\/p>\n<ul>\n<li><code>git config credential.helper store<\/code> \u2013 stores the credentials indefinitely.<\/li>\n<li><code>git config credential.helper 'cache --timeout=3600'<\/code>\u2013 Shops for 60 minutes<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>If like me you synchronize your Repository GitHub with your Jeedom development, you encounter since August 13, 2021 a new error.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[23],"tags":[81,100],"class_list":["post-2103","post","type-post","status-publish","format-standard","hentry","category-jeedom-2","tag-developpement","tag-github"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/2103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=2103"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/2103\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=2103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=2103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=2103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}