This package will support your automation in your student life with a program written in golang.
Package http/net
is very useful and generally used in many situations. http.Client
is a standard method to access website or send API request ...etc, so kitwalk
is just a wrapper to get authenticated cookies and store it to your own http.Client
.
Just create http.Client
instance, and give it to this package, now you can access the website protected with Shibboleth using http.Client
.
- Go 1.10 or later
Other packages
See example
NOTE
Shibboleth authentication will revoke after few hours. If the website require to authenticate again, you should use LoginWith
again. If you logged in and the website require to re-authenticate, LoginWith
cannot works well, I think. So, this package only support
- Short life cycle work
- For example, scraping every minutes, CLI tool, ... etc.
- You should clear the cookie properly and periodically if your program run for a long time.
- No re-authentication
- I don't know such a situation will occur, kitwalk doesn't support that.
- For example, in other services, re-auth is required when you change password or perform administrative activity.
Please be careful to use. DON'T PUSH YOUR USERNAME OR PASSWORD TO YOUR REPOSITORY.
We welcome your contribution! Please commit any fix or improvement.
To fix version of packages, you should use dep
.
- Dep v0.5.0 or later
- Write documents
- examples/main.go
- README.md
git commit -a -m 'Release v${VERSION}'
git tag v${VERSION}
git push origin master --tags
GPL v3
- StudioAquatan
- pudding