Skip to content

Authenticate with http.Client for Shibboleth in Kyoto Institute of Technology

License

Notifications You must be signed in to change notification settings

StudioAquatan/kitwalk

Repository files navigation

StudioAquatan/kitwalk

CircleCI codecov Go Report Card

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.

Environment

  • Go 1.10 or later

Other packages

Usage

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

  1. 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.
  2. 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.

Development

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

Release

  1. Write documents
    • examples/main.go
    • README.md
  2. git commit -a -m 'Release v${VERSION}'
  3. git tag v${VERSION}
  4. git push origin master --tags

License

GPL v3

Author

  • StudioAquatan
    • pudding

About

Authenticate with http.Client for Shibboleth in Kyoto Institute of Technology

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages