From 1ea68c4a646ba5e8aea62583548d40a5ddd157cc Mon Sep 17 00:00:00 2001 From: Pelle Braendgaard Date: Sat, 21 Sep 2013 12:31:32 +0300 Subject: [PATCH] Bump to version 1.0.0-rc14 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. --- README.md | 14 ++++++++++---- project.clj | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8e4a145..55bd7e5 100644 --- a/README.md +++ b/README.md @@ -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: @@ -68,7 +74,7 @@ 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) @@ -76,7 +82,7 @@ A OAuthToken record exists which can be instantiated and stored easily by the cr ## 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) @@ -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) diff --git a/project.clj b/project.clj index 3c119b3..c68dc95 100644 --- a/project.clj +++ b/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"]