|
1 | 1 | # Auth2 client for Java |
2 | 2 |
|
3 | 3 | This repo contains a minimal client for the [KBase Auth2 server](https://github.com/kbase/auth2), |
4 | | -covering only the most common operations - e.g. validating tokens and user names. |
| 4 | +covering only the most common operations - e.g. validating tokens and user names. For those |
| 5 | +functions, it is backwards compatible with the prior version of the client. |
5 | 6 |
|
6 | 7 | Most other uses are easily done with any http/REST client like the built in Java client |
7 | 8 | in 11+ or the Jersey client. |
8 | 9 |
|
| 10 | +## Including the client in your build |
9 | 11 |
|
10 | | -## Prior version |
| 12 | +See https://jitpack.io/#kbase/auth2_client_java for instructions on how to include JitPack |
| 13 | +built dependencies in your build. |
| 14 | + |
| 15 | +## JavaDoc |
| 16 | + |
| 17 | +JavaDoc is available at |
| 18 | +``` |
| 19 | +https://javadoc.jitpack.io/com/github/kbase/auth2_client_java/<version>/javadoc/ |
| 20 | +``` |
| 21 | + |
| 22 | +For example: |
| 23 | + |
| 24 | +https://javadoc.jitpack.io/com/github/kbase/auth2_client_java/0.5.0/javadoc/ |
| 25 | + |
| 26 | +## Usage |
| 27 | + |
| 28 | +If backwards compatibility with versions of the client prior to 0.5.0 is required, use the |
| 29 | +`us.kbase.auth.ConfigurableAuthService` class. Otherwise use the |
| 30 | +`us.kbase.auth.client.AuthClient` class. |
11 | 31 |
|
12 | | -The prior version of the client is available at https://github.com/kbase/auth. |
| 32 | +Usage is fairly simple given a basic understanding of the auth2 server API - consult the |
| 33 | +JavaDocs for details. |
13 | 34 |
|
| 35 | +## Development |
| 36 | + |
| 37 | +### Adding and releasing code |
| 38 | + |
| 39 | +* Adding code |
| 40 | + * All code additions and updates must be made as pull requests directed at the develop branch. |
| 41 | + * All tests must pass and all new code must be covered by tests. |
| 42 | + * All new code must be documented appropriately |
| 43 | + * Javadoc |
| 44 | + * General documentation if appropriate |
| 45 | + * Release notes |
| 46 | +* Releases |
| 47 | + * The main branch is the stable branch. Releases are made from the develop branch to the main |
| 48 | + branch. |
| 49 | + * Tag the version in git and github. |
| 50 | + * Create a github release. |
| 51 | + * Check that the javadoc is appropriately built on JitPack. |
| 52 | + |
| 53 | +### Testing |
| 54 | + |
| 55 | +Copy `test.cfg.example` to `test.cfg` and fill it in appropriately. Then: |
| 56 | + |
| 57 | +``` |
| 58 | +./gradlew test |
| 59 | +``` |
| 60 | + |
| 61 | +## Prior version |
14 | 62 |
|
| 63 | +The prior version of the client is available at https://github.com/kbase/auth for source code |
| 64 | +and in https://github.com/kbase/jars for built jars. |
0 commit comments