Archi Forum

Archi Plug-ins => coArchi => Topic started by: thope@ozemail.com.au on April 02, 2021, 01:08:32 AM

Title: Github two factor authentication
Post by: thope@ozemail.com.au on April 02, 2021, 01:08:32 AM
I understand that Github is moving to a two token factor authentication model. What does that mean for the existing Collaboration plugin?   
Title: Re: Github two factor authentication
Post by: Phil Beauvoir on April 02, 2021, 10:25:16 AM
I believe 2FA is for accessing the website and user account details. [1]

My understanding is that for using the API as a client, only user name and Personal Access Token is required. [2]

[1] https://docs.github.com/en/github/authenticating-to-github/accessing-github-using-two-factor-authentication
[2] https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token
Title: Re: Github two factor authentication
Post by: tsanov on April 03, 2021, 18:47:58 PM
Phil Beauvoir is absolutely right - I am using coArchi with 2FA enabled and the only difference is that I punch in an access token instead of the account password.
Title: Re: Github two factor authentication
Post by: Thomas Rischbeck (ITMC.ch) on April 05, 2021, 23:29:08 PM
I can confirm that this works the same way with MS Azure DevOps Git - which we use with MFA.
Title: Re: Github two factor authentication
Post by: ArveSoreide on July 02, 2021, 09:56:58 AM
Quote from: tsanov on April 03, 2021, 18:47:58 PM
Phil Beauvoir is absolutely right - I am using coArchi with 2FA enabled and the only difference is that I punch in an access token instead of the account password.

Hi

I've tried replicating what you are doing - creating a personal access token in GitHub and pasting it into the "Identity password" field. But I still get "not authorized".

It is probably something very basic I have misunderstood, but I'm in need of help here.
Title: Re: Github two factor authentication
Post by: Phil Beauvoir on July 02, 2021, 10:00:03 AM
That field in preferences is for accessing the SSH file.

If you are using HTTPS, the PAT is used in the repository's password field when connecting. This can be set in the Properties tab when the repository is selected.
Title: Re: Github two factor authentication
Post by: ArveSoreide on July 02, 2021, 10:19:58 AM
Thank you so much - it did in fact work!