Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Aug 17, 2022. It is now read-only.
/finagle-hawkPublic archive

HTTP Holder-Of-Key Authentication Scheme for Finagle

License

NotificationsYou must be signed in to change notification settings

redbubble/finagle-hawk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status

HAWK Support for Finagle/Finch

HTTP Holder-Of-Key Authentication Scheme (Hawk) support forFinagle.

Note that it currently doesn't supportResponse Payload Validation.

Almost all of this library is Finagle agnostic, onlyHawkAuthenticateRequestFilter is tied to Finagle.

If you like this, you might like other open source code from Redbubble:

  • rb-scala-utils - Miscellaneous utilities (common code) for buildingScala-based services, using Finch (on which this project depends).
  • finch-template - A template project for Finch-based services.
  • rb-graphql-template - A template for Scala HTTP GraphQL services.
  • finch-sangria - A simple wrapper for using Sangria from within Finch;

Setup

You will need to add something like the following to yourbuild.sbt:

resolvers+=Resolver.jcenterRepolibraryDependencies+="com.redbubble"%%"finagle-hawk"%"0.3.1"

Usage

valcreds=Credentials(KeyId("Key ID"),Key("8e2dd2949b0e30c544336f73f94e2df3"),Sha256)objectAuthenticationFilterextendsHawkAuthenticateRequestFilter(creds)valauthenticatedService=AuthenticationFilter andThen service

Release

For contributors, a cheat sheet to making a new release:

$ git commit -m"New things"&& git push$ git tag -a v0.0.3 -m"v0.0.3"$ git push --tags$ ./sbt publish

Contributing

Issues and pull requests are welcome. Code contributions should be aligned with the above scope to be included, and include unit tests.


[8]ページ先頭

©2009-2025 Movatter.jp