Hash App token (#6724)
This commit is contained in:
parent
1fa9662946
commit
46373e7657
16 changed files with 239 additions and 44 deletions
11
vendor/code.gitea.io/sdk/gitea/user_app.go
generated
vendored
11
vendor/code.gitea.io/sdk/gitea/user_app.go
generated
vendored
|
@ -1,4 +1,5 @@
|
|||
// Copyright 2014 The Gogs Authors. All rights reserved.
|
||||
// Copyright 2019 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
|
@ -17,12 +18,14 @@ func BasicAuthEncode(user, pass string) string {
|
|||
return base64.StdEncoding.EncodeToString([]byte(user + ":" + pass))
|
||||
}
|
||||
|
||||
// AccessToken represents a API access token.
|
||||
// AccessToken represents an API access token.
|
||||
// swagger:response AccessToken
|
||||
type AccessToken struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Sha1 string `json:"sha1"`
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Token string `json:"token"`
|
||||
HashedToken string `json:"hashed_token"`
|
||||
TokenLastEight string `json:"token_last_eight"`
|
||||
}
|
||||
|
||||
// AccessTokenList represents a list of API access token.
|
||||
|
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
@ -1,4 +1,4 @@
|
|||
# code.gitea.io/sdk v0.0.0-20190416172854-7d954d775498
|
||||
# code.gitea.io/sdk v0.0.0-20190419065346-2858b80da5f7
|
||||
code.gitea.io/sdk/gitea
|
||||
# github.com/BurntSushi/toml v0.3.1
|
||||
github.com/BurntSushi/toml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue