AuthRocket provides Auth as a Service, and this is a (start of a) Java client for communicating with it.
As of now, ain't much.
REST client and some patterns in place. With 0.0.2 all that's really supported is GET methods for memberships and orgs.
applicationContext.xml
<bean id="membershipClientImpl" class="com.surfwatchlabs.authrocket.service.MembershipClientImpl" >
<property name="authRocketClient" ref="authRocketRESTClient" />
</bean>
<bean id="authRocketRESTClient" class="com.surfwatchlabs.authrocket.client.AuthRocketRESTClient" >
<property name="authrocketAccountId" value="my-authrocket-account-id" />
<property name="authrocketApiKey" value="my-authrocket-api-key" />
<property name="authrocketDefaultRealmId" value="my-authrocket-realm" />
</bean>MyClass.java
MembershipClientImpl membershipClient = ..;
// holla at AuthRocket
Collection<Membership> memberships = membershipClient.getMembershipsByOrgId( "org_123abc" );- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
MIT