cycloidio / goat Goto Github PK
View Code? Open in Web Editor NEWGo SDK for auth0 API
License: MIT License
Go SDK for auth0 API
License: MIT License
go get github.com/cycloidio/goat throws the following error:
can't load package: package github.com/cycloidio/goat: no buildable Go source files in /Users/darshik/go/src/github.com/cycloidio/goat
Currently some elements of the Call
method are not checked:
func (a *Auth0) Call(api_action string, method string, body []byte) ([]byte, error) {
[...]
_, err := a.client.Get(uri)
if err != nil {
return nil, err
}
[...]
resp, err := a.client.Do(req)
if err != nil {
return nil, err
}
[...]
res_body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return nil, err
}
So checks should be added for:
Auth0 jwt access tokens expire after 24 hours so we have to get new ones. Does the library handle this situation?
Opened this issue to tackle the "Use Semver" section of the comment of the issue #14, which was
There are a lot of tools from Vendoring in Go because Google uses monorepo so it's not an issue for them, but recently, an OSS project has the "bless" (not quite yet but) that it may be incorpored on the
go tools
. This project isdep
and you can find the documentatio of how they resolve versioning here.
So basically the other proposal is to add taggs to the repository for versioning. This way we can
deprecate
the functionality according to the versioning, so in a newmajor
we can remove the/auth0
.
Hello,
On auth0 API specs, there's some fields to pass through the params to return a subset of users : https://auth0.com/docs/api/management/v2#!/Users/get_users
The GetUser method should handle an optional params map to be able to filter the users returned
There are a few things to improve the Makefile:
@
to each shell command which is missing it to avoid to print what's run on the targethelp
target that Cycloid usesfmt
target to use goimports
fmtcheck
target to use goimports
(It requires to update CI config (.travis.yml)In issue #12 we updated the documentation to go get github.com/cycloidio/goat/auth0
to install the package.
Basically the problem was that the root of the project does not have any imported code, instead all the code is in /auth0
, which is not go friendly
.
We should move all the code form /auth0
to the root of the package to make the package more consistent and clear with go starndars.
But this proposal involves a bracking change, the import path would no longer be github.com/cycloidio/goat/auth0
so all the projects with this import path will have an import mismatch (if they are updated), because github.com/cycloidio/goat/auth0
will no loger exist. So this proposal brakes COMPATIBILITY.
I see this API client a bit strange approach of what the README describes.
If it'd be a helper library to call the Auth0 management API, I understand that the API path (e.g. /api/v2
) be a parameter, but then having function for calling specific endpoints look strange because those endpoints could change when the path change, for example, between different versions (e.g. /api/v1
).
If I consider that this library is a client API for Auth0 management API, I wouldn't:
My rationale behind of currently exposing the Call
and UserCall
functions is that the library is pretty much work in progress and it doesn't have a function for all the endpoints, however I'm wondering if you have the same rationale and the end goal of this repo is to have a Auth0 client than a generic small wrapper library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.