Skip to content

Commit

Permalink
Bump to version 1.0.0-rc14
Browse files Browse the repository at this point in the history
Should be close to a final 1.0.0

A few potential breaking changes.

The oauth models have been refactored to be simple maps instead of
records. The factory functions are simpler and take a simple map of
data.

If you have your own token and authcode creator functions for versions
prior to 1.0.0-rc14 please verify that they work when upgrading.
  • Loading branch information
pelle committed Sep 21, 2013
1 parent df326d1 commit 1ea68c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions README.md
Expand Up @@ -21,9 +21,15 @@ The following bearer tokens are implemented:
Add the following dependency to your `project.clj` file:

```clojure
[clauth "1.0.0-rc10"]
[clauth "1.0.0-rc14"]
```

### Possible breaking change with 1.0.0-rc14

The oauth models have been refactored to be simple maps instead of records. The factory functions are simpler and take a simple map of data.

If you have your own token and authcode creator functions for versions prior to 1.0.0-rc14 please verify that they work when upgrading.

## Usage

There are currently 2 middlewares defined:
Expand Down Expand Up @@ -68,15 +74,15 @@ There is a protocol defined called Expirable which implements one function:

This is implementend by IPersistentMap so {} represents a valid token where {:expires (date-time 2011)} is invalid.

A OAuthToken record exists which can be instantiated and stored easily by the create-token function:
A OAuthToken map can be instantiated and stored easily by the create-token function:

```clojure
(create-token client user)
```

## Client Applications

A ClientApplication record exists which can be instantiated and stored easily by the register-app function:
A ClientApplication map can be instantiated and stored easily by the register-app function:

```clojure
(register-app name url)
Expand All @@ -86,7 +92,7 @@ A client application has a client-id and a client-secret which is used for issui

## Users

A User record exists which can be instantiated and stored easily by the register-user function:
A User map exists which can be instantiated and stored easily by the register-user function:

```clojure
(register-user login password name url)
Expand Down
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject clauth "1.0.0-rc13"
(defproject clauth "1.0.0-rc14"
:description "OAuth2 based authentication library for Ring"
:url "http://github.com/pelle/clauth"
:dependencies [[org.clojure/clojure "1.5.1"]
Expand Down

0 comments on commit 1ea68c4

Please sign in to comment.