GithubHelp home page GithubHelp logo

Comments (12)

KN4CK3R avatar KN4CK3R commented on May 22, 2024

That sounds really exhausting because the OTP always needs to be refreshed. Why not use a PAT instead of the normal password?

from gitea.

Kwonunn avatar Kwonunn commented on May 22, 2024

This is just for use in cases where I'm fetching a project once onto a server I don't want to set up SSH on.

Using tokens for this would either require making a fresh token every time which is annoying, or having one to always use which is a security hole.

from gitea.

techknowlogick avatar techknowlogick commented on May 22, 2024

This is quite interesting. On one hand user/pass auth for api/git operations are being depreciated, but it does give the idea of otp with scoped tokens 🤔

from gitea.

Kwonunn avatar Kwonunn commented on May 22, 2024

Is Gitea planning to deprecate http entirely for git operations?

from gitea.

KN4CK3R avatar KN4CK3R commented on May 22, 2024

No, only the combination with username and password.

from gitea.

Kwonunn avatar Kwonunn commented on May 22, 2024

Why, if I may ask? I know GitHub has stopped allowing it but I'm not quite sure why.

from gitea.

KN4CK3R avatar KN4CK3R commented on May 22, 2024

Because the username/password combination should be used in less places in favor of configurable tokens.

from gitea.

Kwonunn avatar Kwonunn commented on May 22, 2024

I see. Then, perhaps another method is more appropriate.

Maybe we could add a quick token button in this menu
image
which would generate a temporary personal access token scoped specifically to that repository and with read-only access, which you could use once to clone the repository somewhere?

from gitea.

JakobDev avatar JakobDev commented on May 22, 2024

No, only the combination with username and password.

Why?

from gitea.

KN4CK3R avatar KN4CK3R commented on May 22, 2024

No, only the combination with username and password.

Why?

#28968 (comment)
https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/#background

from gitea.

Kwonunn avatar Kwonunn commented on May 22, 2024

I see. Then, perhaps another method is more appropriate.

Maybe we could add a quick token button in this menu image which would generate a temporary personal access token scoped specifically to that repository and with read-only access, which you could use once to clone the repository somewhere?

Should I make a new feature request for this new idea and just leave the http OTP thing?

from gitea.

JakobDev avatar JakobDev commented on May 22, 2024

Not beeing able to use Username/Password could be a problem for one time contributors

from gitea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.