d2ccead88b
Add temporary authentication via environment variables ( #639 )
...
#633
Co-authored-by: Tim Riedl <mail@tim-riedl.de >
Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com >
Co-authored-by: Lunny Xiao <lunny@noreply.gitea.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-on: https://gitea.com/gitea/tea/pulls/639
Co-authored-by: Tim Riedl <uvulpos@noreply.gitea.com >
Co-committed-by: Tim Riedl <uvulpos@noreply.gitea.com >
2025-08-11 18:53:09 +00:00
c2ddda6800
Fix helper panic ( #676 )
...
Fix helper on get login struct
Reviewed-on: https://gitea.com/gitea/tea/pulls/676
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com >
Co-authored-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com >
Co-committed-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com >
2025-02-26 16:09:06 +00:00
2984ad4964
Add git helper ( #612 )
...
Add support to tea login with helper same another tools and `gh`
Reviewed-on: https://gitea.com/gitea/tea/pulls/612
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com >
Co-committed-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com >
2024-08-26 11:34:36 +00:00
c8c8e9758b
Add OTP and scopes to login ( #546 )
...
Resolves #542
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/546
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: John Olheiser <john+gitea@jolheiser.com >
Co-committed-by: John Olheiser <john+gitea@jolheiser.com >
2024-02-14 16:49:29 +00:00
b868d30434
spdx ( #581 )
...
Co-authored-by: techknowlogick <hello@techknowlogick.com >
Co-committed-by: techknowlogick <hello@techknowlogick.com >
2023-09-08 01:40:02 +00:00
b2d845b8c7
fix: non-standard ssh port URL's repo can't be recognized ( #555 )
...
Resolve #452
Reviewed-on: https://gitea.com/gitea/tea/pulls/555
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: Grady Wong <wgqimut@gmail.com >
Co-committed-by: Grady Wong <wgqimut@gmail.com >
2023-06-06 13:14:21 +00:00
6a848cb72a
Add option to disable version checking ( #520 )
...
Fixes "Only signed in user is allowed to call APIs." as the
/api/v1/version returns a 403 when running a gitea where
REQUIRE_SIGNIN_VIEW is enabled
Co-authored-by: Wim <wim@42.be >
Reviewed-on: https://gitea.com/gitea/tea/pulls/520
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: Wim <42wim@noreply.gitea.io >
Co-committed-by: Wim <42wim@noreply.gitea.io >
2022-10-31 09:56:23 +08:00
6a4ba6a689
Add support for authentication via ssh certificates and pub/privatekey ( #442 )
...
This adds support for authentication using a SSH certificate and normal public keys when you've got an ssh-agent running that has this certificate or your public key loaded.
First question when creating a new login is to ask about the ssh certificates or public keys, when the answer is yes, we don't need to ask about tokens/usernames anymore.
Co-authored-by: Wim <wim@42.be >
Reviewed-on: https://gitea.com/gitea/tea/pulls/442
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: Wim <42wim@noreply.gitea.io >
Co-committed-by: Wim <42wim@noreply.gitea.io >
2022-09-15 03:00:08 +08:00
883a27b14e
Fetch all items where needed. ( #475 )
...
Disable pagination in all places where we need all items.
Ideally we'd do multiple paginated requests until the needed items are local, but this is blocked by https://gitea.com/gitea/go-sdk/pulls/473 . So this is a stopgap to get correct behaviour.
Fixes #464
Co-authored-by: Norwin <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/475
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: 6543 <6543@obermui.de >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io >
2022-04-08 03:44:16 +08:00
3fca309f2c
Fix adding login without token on private instances ( #392 )
...
fixes #365
Co-authored-by: Norwin <git@nroo.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/392
Reviewed-by: 6543 <6543@obermui.de >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-authored-by: Norwin <noerw@noreply.gitea.io >
Co-committed-by: Norwin <noerw@noreply.gitea.io >
2021-08-30 23:19:45 +08:00
a948fd7e10
Refactor error handling ( #308 )
...
use fmt instead of log
log.Fatal -> return err
set non-zero exit code on error
print to default err log
cleanup
fix vet
Co-authored-by: Norwin Roosen <git@nroo.de >
Co-authored-by: 6543 <6543@obermui.de >
Reviewed-on: https://gitea.com/gitea/tea/pulls/308
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com >
Reviewed-by: 6543 <6543@obermui.de >
Co-Authored-By: Norwin <noerw@noreply.gitea.io >
Co-Committed-By: Norwin <noerw@noreply.gitea.io >
2020-12-17 00:18:10 +08:00
c063329e9a
[Refactor] unexport config.Config var & move login tasks to task module ( #288 )
...
Unexport generateToken()
move CreateLogin into task
Create func config.SetDefaultLogin()
Unexport loadConfig() & saveConfig
unexport config var
make SetDefaultLogin() case insensitive
update func descriptions
move FindSSHKey to task module
Reviewed-on: https://gitea.com/gitea/tea/pulls/288
Reviewed-by: Norwin <noerw@noreply.gitea.io >
Reviewed-by: Andrew Thornton <art27@cantab.net >
Co-Authored-By: 6543 <6543@obermui.de >
Co-Committed-By: 6543 <6543@obermui.de >
2020-12-12 21:28:37 +08:00