Add support for authentication via ssh certificates and pub/privatekey #442
2
go.mod
2
go.mod
|
@ -66,6 +66,6 @@ require (
|
|||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
|
||||
)
|
||||
|
||||
replace code.gitea.io/sdk/gitea => gitea.com/42wim/go-sdk/gitea v0.0.0-20220616000741-57eaee10e1a9
|
||||
replace code.gitea.io/sdk/gitea => gitea.com/42wim/go-sdk/gitea v0.0.0-20220617000604-9af3e24dc159
|
||||
6543 marked this conversation as resolved
Outdated
|
||||
|
||||
// replace code.gitea.io/sdk/gitea => ../go-sdk-main/gitea
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1,7 +1,7 @@
|
|||
code.gitea.io/gitea-vet v0.2.1 h1:b30by7+3SkmiftK0RjuXqFvZg2q4p68uoPGuxhzBN0s=
|
||||
code.gitea.io/gitea-vet v0.2.1/go.mod h1:zcNbT/aJEmivCAhfmkHOlT645KNOf9W2KnkLgFjGGfE=
|
||||
gitea.com/42wim/go-sdk/gitea v0.0.0-20220616000741-57eaee10e1a9 h1:fKSuHO9hZIP/UtXRw2NzdX9JfHXcNLCXKMB1o7u93y8=
|
||||
gitea.com/42wim/go-sdk/gitea v0.0.0-20220616000741-57eaee10e1a9/go.mod h1:aRmrQC3CAHdJAU1LQt0C9zqzqI8tUB/5oQtNE746aYE=
|
||||
gitea.com/42wim/go-sdk/gitea v0.0.0-20220617000604-9af3e24dc159 h1:mVtX6XQS+0t0+mOWf3QV/EcLYcbXD4KPQ3rqamqfp1A=
|
||||
gitea.com/42wim/go-sdk/gitea v0.0.0-20220617000604-9af3e24dc159/go.mod h1:aRmrQC3CAHdJAU1LQt0C9zqzqI8tUB/5oQtNE746aYE=
|
||||
gitea.com/noerw/unidiff-comments v0.0.0-20201219085024-64aec5658f2b h1:CLYsMGcGLohESQDMth+RgJ4cB3CCHToxnj0zBbvB3sE=
|
||||
gitea.com/noerw/unidiff-comments v0.0.0-20201219085024-64aec5658f2b/go.mod h1:Fc8iyPm4NINRWujeIk2bTfcbGc4ZYY29/oMAAGcr4qI=
|
||||
github.com/AlecAivazis/survey/v2 v2.3.1 h1:lzkuHA60pER7L4eYL8qQJor4bUWlJe4V0gqAT19tdOA=
|
||||
|
|
|
@ -91,8 +91,8 @@ func CreateLogin() error {
|
|||
sshAgent = true
|
||||
sshKey = ""
|
||||
} else {
|
||||
sshKey = regexp.MustCompile(`(.*?)$`).FindStringSubmatch(sshKey)[1]
|
||||
sshKey = strings.TrimSuffix(sshKey, ".pub")
|
||||
sshKey = regexp.MustCompile(`\((.*?)\)$`).FindStringSubmatch(sshKey)[1]
|
||||
sshKey = strings.TrimSuffix(sshKey, "-cert.pub")
|
||||
}
|
||||
} else {
|
||||
sshKeyFingerprint = regexp.MustCompile(`(SHA256:.*?)\s`).FindStringSubmatch(sshKey)[1]
|
||||
|
|
Loading…
Reference in New Issue
Block a user
sdk pull got merged
ok pulled in upstream go-sdk back