crtauth-agent-signer

An implementation of the Signer interface in crtauth-java that connects to the local ssh-agent.

License

License

GroupId

GroupId

com.spotify
ArtifactId

ArtifactId

crtauth-agent-signer
Last Version

Last Version

0.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

crtauth-agent-signer
An implementation of the Signer interface in crtauth-java that connects to the local ssh-agent.
Project URL

Project URL

https://github.com/spotify/crtauth-java-agent-signer
Source Code Management

Source Code Management

https://github.com/spotify/crtauth-java-agent-signer

Download crtauth-agent-signer

How to add to project

<!-- https://jarcasting.com/artifacts/com.spotify/crtauth-agent-signer/ -->
<dependency>
    <groupId>com.spotify</groupId>
    <artifactId>crtauth-agent-signer</artifactId>
    <version>0.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.spotify/crtauth-agent-signer/
implementation 'com.spotify:crtauth-agent-signer:0.1.2'
// https://jarcasting.com/artifacts/com.spotify/crtauth-agent-signer/
implementation ("com.spotify:crtauth-agent-signer:0.1.2")
'com.spotify:crtauth-agent-signer:jar:0.1.2'
<dependency org="com.spotify" name="crtauth-agent-signer" rev="0.1.2">
  <artifact name="crtauth-agent-signer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.spotify', module='crtauth-agent-signer', version='0.1.2')
)
libraryDependencies += "com.spotify" % "crtauth-agent-signer" % "0.1.2"
[com.spotify/crtauth-agent-signer "0.1.2"]

Dependencies

compile (3)

Group / Artifact Type Version
com.spotify : crtauth jar 0.2.1
com.github.jnr : jnr-unixsocket jar 0.8
commons-codec : commons-codec jar 1.10

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19

Project Modules

There are no modules declared in this project.

crtauth java agent signer

An implementation of the Signer interface in crtauth-java that connects to the local ssh-agent.

If you want to see a working example using this code, have a look in crtauth-java-jersey-example in the branch agentsigner (to test it you need to replace id_rsa.pub with a public key that has a corresponding private key in your ssh-agent)

Dependencies

It depends on the Apache sshd-core library which in turn depends on the Tomcat native library to implement UNIX socket communication.

To use this code please make sure that you have installed tcnative. On Ubuntu 14.04 LTS it lives in the libtcnative-1 package.

Credit

This was originally written by Federico Piccinini for the crtauth-java project but was later moved into this small project to simplify dependencies.

License

This software is licensed under the Apache 2 License. Copyright Spotify AB

TODO

  • There is very little in the way of error reporting. Having that would be nice.
  • Some testing perhaps.
com.spotify

Spotify

Versions

Version
0.1.2
0.1.1
0.1.0