Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/Godeps/Godeps.json
akuma06 03ea72595d OAuth API [done] (#1275)
* Initial Commit for OAuth API

This builds and run and return the right error.
Need to test it and then adding all users as possible client

* Added mising dependency

* just compile already...

* Fixing template test

* Imrpovements

Moved db stuff in models
Added some tests
Added form in modpanel to add/update a client
Added controllers for add/update of client

* Added Forms + speed improvements

Controller oauth client listing + html
Controller oauth client delete + messages
Messages on comment delete
New ES config that disable ES if set to false. Improve load speed on local development
Fix a load config bug
Fix index admin & translation string sign_out broken by @ewhal

* Sanitize empty strig in form array + css

Multiple empty array of strings are sanitized for the oauth client create form
Added some css for the form display

* Upload and Create form works

* Fix splitting response types

* Removing required on secret when updating

* fix travis error

* Fix travis template test

* Update dependency

* Moved to jinzhu instead of azhao

* randomizen secret on creation

* Final touch on oath api

improved display name
fix grant form csrf
fix login csrf on oauth

* Fix gorm test

* fix template test

* Fixing deleted dependency issue

* Make travis faster

* Fix typo

* Fix csrf for api calls

* This shouldn't be exempt

* Removing hard coded hash

@ewhal Don't forget to replace the hash in tokens.go with another one

* Added an example on how to use OAuth middleware

* Renamed fosite utils to oauth2 utils
2017-07-28 13:46:40 +10:00

376 lignes
10 Kio
JSON

{
"ImportPath": "github.com/NyaaPantsu/nyaa",
"GoVersion": "go1.8",
"GodepVersion": "v79",
"Packages": [
"./..."
],
"Deps": [
{
"ImportPath": "github.com/BurntSushi/toml",
"Comment": "v0.3.0-7-ga368813",
"Rev": "a368813c5e648fee92e5f6c30e3944ff9d5e8895"
},
{
"ImportPath": "github.com/CloudyKit/fastprinter",
"Rev": "74b38d55f37af5d6c05ca11147d616b613a3420e"
},
{
"ImportPath": "github.com/CloudyKit/jet",
"Comment": "v2.1.1-1-ga1c4500",
"Rev": "a1c4500d4bee4ecb9a38d6cded7c13e86f2b1e28"
},
{
"ImportPath": "github.com/Sirupsen/logrus",
"Comment": "v0.11.5-18-g5b60b3d",
"Rev": "5b60b3d3ee017ed00bcd0225fcca7acab767844b"
},
{
"ImportPath": "github.com/asaskevich/govalidator",
"Comment": "v6-20-gaa5cce4",
"Rev": "aa5cce4a76edb1a5acecab1870c17abbffb5419e"
},
{
"ImportPath": "github.com/bradfitz/slice",
"Rev": "d9036e2120b5ddfa53f3ebccd618c4af275f47da"
},
{
"ImportPath": "github.com/davecgh/go-spew/spew",
"Comment": "v1.1.0-6-gadab964",
"Rev": "adab96458c51a58dc1783b3335dcce5461522e75"
},
{
"ImportPath": "github.com/dchest/captcha",
"Comment": "weekly.2012-03-04-18-g9e95214",
"Rev": "9e952142169c3cd6268c6482a3a61c121536aca2"
},
{
"ImportPath": "github.com/dgrijalva/jwt-go",
"Comment": "v3.0.0-20-ga539ee1",
"Rev": "a539ee1a749a2b895533f979515ac7e6e0f5b650"
},
{
"ImportPath": "github.com/dustin/go-humanize",
"Rev": "259d2a102b871d17f30e3cd9881a642961a1e486"
},
{
"ImportPath": "github.com/fatih/structs",
"Comment": "v1.0-4-g7e5a8ee",
"Rev": "7e5a8eef611ee84dd359503f3969f80df4c50723"
},
{
"ImportPath": "github.com/gin-gonic/gin",
"Comment": "v1.1.4-1-gd5b353c",
"Rev": "d5b353c5d5a560322e6d96121c814115562501f7"
},
{
"ImportPath": "github.com/gin-gonic/gin/binding",
"Comment": "v1.1.4-1-gd5b353c",
"Rev": "d5b353c5d5a560322e6d96121c814115562501f7"
},
{
"ImportPath": "github.com/gin-gonic/gin/render",
"Comment": "v1.1.4-1-gd5b353c",
"Rev": "d5b353c5d5a560322e6d96121c814115562501f7"
},
{
"ImportPath": "github.com/go-playground/locales",
"Comment": "v0.11.1-2-g1e5f1161",
"Rev": "1e5f1161c6416a5ff48840eb8724a394e48cc534"
},
{
"ImportPath": "github.com/go-playground/locales/currency",
"Comment": "v0.11.1-2-g1e5f1161",
"Rev": "1e5f1161c6416a5ff48840eb8724a394e48cc534"
},
{
"ImportPath": "github.com/go-playground/universal-translator",
"Comment": "v0.16.0-1-g7120149",
"Rev": "71201497bace774495daed26a3874fd339e0b538"
},
{
"ImportPath": "github.com/go-playground/validator",
"Comment": "v9.4.0",
"Rev": "fb68f39656d7ebf8aa339ad4917aa0c260ecc237"
},
{
"ImportPath": "github.com/golang/protobuf/proto",
"Rev": "6a1fa9404c0aebf36c879bc50152edcc953910d2"
},
{
"ImportPath": "github.com/gorilla/context",
"Comment": "v1.1-7-g08b5f42",
"Rev": "08b5f424b9271eedf6f9f0ce86cb9396ed337a42"
},
{
"ImportPath": "github.com/gorilla/feeds",
"Rev": "441264de03a8117ed530ae8e049d8f601a33a099"
},
{
"ImportPath": "github.com/gorilla/securecookie",
"Comment": "v1.1-6-ge59506c",
"Rev": "e59506cc896acb7f7bf732d4fdf5e25f7ccd8983"
},
{
"ImportPath": "github.com/jinzhu/configor",
"Rev": "ff2ac2b1ce3d687c3a1da0d2847fbce42524a7f3"
},
{
"ImportPath": "github.com/jinzhu/gorm",
"Comment": "v1.0-162-g5b8c0dd",
"Rev": "5b8c0dd6b92d9caa8036c31dcb117f2df7cceefa"
},
{
"ImportPath": "github.com/jinzhu/gorm/dialects/postgres",
"Comment": "v1.0-162-g5b8c0dd",
"Rev": "5b8c0dd6b92d9caa8036c31dcb117f2df7cceefa"
},
{
"ImportPath": "github.com/jinzhu/gorm/dialects/sqlite",
"Comment": "v1.0-162-g5b8c0dd",
"Rev": "5b8c0dd6b92d9caa8036c31dcb117f2df7cceefa"
},
{
"ImportPath": "github.com/jinzhu/inflection",
"Rev": "1c35d901db3da928c72a72d8458480cc9ade058f"
},
{
"ImportPath": "github.com/justinas/nosurf",
"Comment": "0.1-68-g8e15682",
"Rev": "8e15682772641a1e39c431233e6a9338a32def32"
},
{
"ImportPath": "github.com/lib/pq",
"Comment": "go1.0-cutoff-166-g2704adc",
"Rev": "2704adc878c21e1329f46f6e56a1c387d788ff94"
},
{
"ImportPath": "github.com/lib/pq/hstore",
"Comment": "go1.0-cutoff-166-g2704adc",
"Rev": "2704adc878c21e1329f46f6e56a1c387d788ff94"
},
{
"ImportPath": "github.com/lib/pq/oid",
"Comment": "go1.0-cutoff-166-g2704adc",
"Rev": "2704adc878c21e1329f46f6e56a1c387d788ff94"
},
{
"ImportPath": "github.com/majestrate/i2p-tools/lib/i2p",
"Rev": "afc8e46afa955663a2670a1574150e14ff347ca6"
},
{
"ImportPath": "github.com/manucorporat/sse",
"Rev": "ee05b128a739a0fb76c7ebd3ae4810c1de808d6d"
},
{
"ImportPath": "github.com/mattn/go-isatty",
"Comment": "v0.0.2",
"Rev": "fc9e8d8ef48496124e79ae0df75490096eccf6fe"
},
{
"ImportPath": "github.com/mattn/go-sqlite3",
"Comment": "v1.2.0-80-gcf7286f",
"Rev": "cf7286f069c3ef596efcc87781a4653a2e7607bd"
},
{
"ImportPath": "github.com/microcosm-cc/bluemonday",
"Rev": "e79763773ab6222ca1d5a7cbd9d62d83c1f77081"
},
{
"ImportPath": "github.com/mohae/deepcopy",
"Rev": "491d3605edfb866af34a48075bd4355ac1bf46ca"
},
{
"ImportPath": "github.com/moul/http2curl",
"Rev": "4e24498b31dba4683efb9d35c1c8a91e2eda28c8"
},
{
"ImportPath": "github.com/nicksnyder/go-i18n/i18n",
"Comment": "v1.8.0-3-gf373441",
"Rev": "f373441d6d54a32891b2d8b1dbf99bc518f3d60d"
},
{
"ImportPath": "github.com/nicksnyder/go-i18n/i18n/bundle",
"Comment": "v1.8.0-3-gf373441",
"Rev": "f373441d6d54a32891b2d8b1dbf99bc518f3d60d"
},
{
"ImportPath": "github.com/nicksnyder/go-i18n/i18n/language",
"Comment": "v1.8.0-3-gf373441",
"Rev": "f373441d6d54a32891b2d8b1dbf99bc518f3d60d"
},
{
"ImportPath": "github.com/nicksnyder/go-i18n/i18n/translation",
"Comment": "v1.8.0-3-gf373441",
"Rev": "f373441d6d54a32891b2d8b1dbf99bc518f3d60d"
},
{
"ImportPath": "github.com/ory/fosite",
"Comment": "v0.11.2-2-gc45a37d",
"Rev": "c45a37d3bb9e3e79d16323f42d76ef96b624dbd0"
},
{
"ImportPath": "github.com/ory/fosite/compose",
"Comment": "v0.11.2-2-gc45a37d",
"Rev": "c45a37d3bb9e3e79d16323f42d76ef96b624dbd0"
},
{
"ImportPath": "github.com/ory/fosite/handler/oauth2",
"Comment": "v0.11.2-2-gc45a37d",
"Rev": "c45a37d3bb9e3e79d16323f42d76ef96b624dbd0"
},
{
"ImportPath": "github.com/ory/fosite/handler/openid",
"Comment": "v0.11.2-2-gc45a37d",
"Rev": "c45a37d3bb9e3e79d16323f42d76ef96b624dbd0"
},
{
"ImportPath": "github.com/ory/fosite/token/hmac",
"Comment": "v0.11.2-2-gc45a37d",
"Rev": "c45a37d3bb9e3e79d16323f42d76ef96b624dbd0"
},
{
"ImportPath": "github.com/ory/fosite/token/jwt",
"Comment": "v0.11.2-2-gc45a37d",
"Rev": "c45a37d3bb9e3e79d16323f42d76ef96b624dbd0"
},
{
"ImportPath": "github.com/parnurzeal/gorequest",
"Comment": "v0.2.15-7-g5bf13be",
"Rev": "5bf13be198787abbed057fb7c4007f372083a0f5"
},
{
"ImportPath": "github.com/patrickmn/go-cache",
"Comment": "v2.0.0-9-g7ac1518",
"Rev": "7ac151875ffb48b9f3ccce9ea20f020b0c1596c8"
},
{
"ImportPath": "github.com/pborman/uuid",
"Comment": "v1.1",
"Rev": "e790cca94e6cc75c7064b1332e63811d4aae1a53"
},
{
"ImportPath": "github.com/pelletier/go-buffruneio",
"Comment": "v0.2.0",
"Rev": "c37440a7cf42ac63b919c752ca73a85067e05992"
},
{
"ImportPath": "github.com/pelletier/go-toml",
"Comment": "v0.5.0-9-g97253b9",
"Rev": "97253b98df84f9eef872866d079e74b8265150f1"
},
{
"ImportPath": "github.com/pkg/errors",
"Comment": "v0.8.0-5-gc605e28",
"Rev": "c605e284fe17294bda444b34710735b29d1a9d90"
},
{
"ImportPath": "github.com/pmezard/go-difflib/difflib",
"Comment": "v1.0.0",
"Rev": "792786c7400a136282c1664665ae0a8db921c6c2"
},
{
"ImportPath": "github.com/russross/blackfriday",
"Comment": "v1.4-45-g0ba0f2b",
"Rev": "0ba0f2b6ed7c475a92e4df8641825cb7a11d1fa3"
},
{
"ImportPath": "github.com/stretchr/testify/assert",
"Comment": "v1.1.4-70-g05e8a0e",
"Rev": "05e8a0eda380579888eb53c394909df027f06991"
},
{
"ImportPath": "github.com/zeebo/bencode",
"Rev": "03ce512f17ce5deb2c024518d504c6419f04d39d"
},
{
"ImportPath": "go4.org/reflectutil",
"Rev": "16ace784e4b16df1d51c3435223b1d602cd43bfa"
},
{
"ImportPath": "golang.org/x/crypto/bcrypt",
"Rev": "5a033cc77e57eca05bdb50522851d29e03569cbe"
},
{
"ImportPath": "golang.org/x/crypto/blowfish",
"Rev": "5a033cc77e57eca05bdb50522851d29e03569cbe"
},
{
"ImportPath": "golang.org/x/net/context",
"Rev": "feeb485667d1fdabe727840fe00adc22431bc86e"
},
{
"ImportPath": "golang.org/x/net/context/ctxhttp",
"Rev": "feeb485667d1fdabe727840fe00adc22431bc86e"
},
{
"ImportPath": "golang.org/x/net/html",
"Rev": "feeb485667d1fdabe727840fe00adc22431bc86e"
},
{
"ImportPath": "golang.org/x/net/html/atom",
"Rev": "feeb485667d1fdabe727840fe00adc22431bc86e"
},
{
"ImportPath": "golang.org/x/net/publicsuffix",
"Rev": "feeb485667d1fdabe727840fe00adc22431bc86e"
},
{
"ImportPath": "golang.org/x/oauth2",
"Rev": "b53b38ad8a6435bd399ea76d0fa74f23149cca4e"
},
{
"ImportPath": "golang.org/x/oauth2/internal",
"Rev": "b53b38ad8a6435bd399ea76d0fa74f23149cca4e"
},
{
"ImportPath": "golang.org/x/sys/unix",
"Rev": "a55a76086885b80f79961eacb876ebd8caf3868d"
},
{
"ImportPath": "golang.org/x/text/internal/tag",
"Rev": "cfdf022e86b4ecfb646e1efbd7db175dd623a8fa"
},
{
"ImportPath": "golang.org/x/text/language",
"Rev": "cfdf022e86b4ecfb646e1efbd7db175dd623a8fa"
},
{
"ImportPath": "golang.org/x/text/language/display",
"Rev": "cfdf022e86b4ecfb646e1efbd7db175dd623a8fa"
},
{
"ImportPath": "gopkg.in/go-playground/validator.v8",
"Comment": "v8.18.1",
"Rev": "5f57d2222ad794d0dffb07e664ea05e2ee07d60c"
},
{
"ImportPath": "gopkg.in/gomail.v2",
"Comment": "2.0.0-23-g81ebce5",
"Rev": "81ebce5c23dfd25c6c67194b37d3dd3f338c98b1"
},
{
"ImportPath": "gopkg.in/natefinch/lumberjack.v2",
"Comment": "v1.0-23-gdd45e6a",
"Rev": "dd45e6a67c53f673bb49ca8a001fd3a63ceb640e"
},
{
"ImportPath": "gopkg.in/olivere/elastic.v5",
"Comment": "v5.0.38",
"Rev": "3f49414dc29d45ba96fde19ba72bc646077dbffd"
},
{
"ImportPath": "gopkg.in/olivere/elastic.v5/uritemplates",
"Comment": "v5.0.38",
"Rev": "3f49414dc29d45ba96fde19ba72bc646077dbffd"
},
{
"ImportPath": "gopkg.in/yaml.v1",
"Rev": "9f9df34309c04878acc86042b16630b0f696e1de"
},
{
"ImportPath": "gopkg.in/yaml.v2",
"Rev": "cd8b52f8269e0feb286dfeef29f8fe4d5b397e0b"
}
]
}