From 0e719b6b38a2625c121c7f9c02ed3d253158cf15 Mon Sep 17 00:00:00 2001 From: gakuzzzz Date: Thu, 27 Aug 2015 02:48:02 +0900 Subject: [PATCH] changed visibility of safeEqual --- README.ja.md | 10 ++++------ README.md | 12 ++++-------- .../scala/jp/t2v/lab/play2/auth/TokenAccessor.scala | 2 +- project/Build.scala | 2 +- 4 files changed, 10 insertions(+), 16 deletions(-) diff --git a/README.ja.md b/README.ja.md index a2f9443..553b363 100644 --- a/README.ja.md +++ b/README.ja.md @@ -37,8 +37,6 @@ Play2.3.0 で動作確認をしています。 --------------------------------------- Play2.2.x 向けの使用方法は [0.11.1 README](https://github.com/t2v/play2-auth/blob/release0.11.1/README.ja.md)をご参照ください。 -Play2.1.x 向けの使用方法は [0.10.2 README](https://github.com/t2v/play2-auth/blob/release0.10.2/README.ja.md)をご参照ください。 -Play2.0.x 向けの使用方法は [0.8 README](https://github.com/t2v/play2-auth/blob/release0.8/README.ja.md)をご参照ください。 Play2.1以前をお使いの方へ --------------------------------------- @@ -52,15 +50,15 @@ Play2.1以前をお使いの方へ `Build.scala` もしくは `build.sbt` にライブラリ依存性定義を追加します。 - "jp.t2v" %% "play2-auth" % "0.13.4", - "jp.t2v" %% "play2-auth-test" % "0.13.4" % "test" + "jp.t2v" %% "play2-auth" % "0.13.5", + "jp.t2v" %% "play2-auth-test" % "0.13.5" % "test" For example: `Build.scala` ```scala val appDependencies = Seq( - "jp.t2v" %% "play2-auth" % "0.13.4", - "jp.t2v" %% "play2-auth-test" % "0.13.4" % "test" + "jp.t2v" %% "play2-auth" % "0.13.5", + "jp.t2v" %% "play2-auth-test" % "0.13.5" % "test" ) ``` diff --git a/README.md b/README.md index 910c780..cbabb13 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,6 @@ Previous Version for Play2.2.x, Please see [previous version 0.11.1 README](https://github.com/t2v/play2-auth/blob/release0.11.1/README.md) -for Play2.1.x, Please see [previous version 0.10.2 README](https://github.com/t2v/play2-auth/tree/release0.10.2) - -for Play2.0.x, Please see [previous version 0.8 README](https://github.com/t2v/play2-auth/tree/release0.8) - Attention --------------------------------------- @@ -59,15 +55,15 @@ Add dependency declarations into your `Build.scala` or `build.sbt` file: * __for Play2.3.x__ - "jp.t2v" %% "play2-auth" % "0.13.4", - "jp.t2v" %% "play2-auth-test" % "0.13.4" % "test" + "jp.t2v" %% "play2-auth" % "0.13.5", + "jp.t2v" %% "play2-auth-test" % "0.13.5" % "test" For example your `Build.scala` might look like this: ```scala val appDependencies = Seq( - "jp.t2v" %% "play2-auth" % "0.13.4", - "jp.t2v" %% "play2-auth-test" % "0.13.4" % "test" + "jp.t2v" %% "play2-auth" % "0.13.5", + "jp.t2v" %% "play2-auth-test" % "0.13.5" % "test" ) ``` diff --git a/module/src/main/scala/jp/t2v/lab/play2/auth/TokenAccessor.scala b/module/src/main/scala/jp/t2v/lab/play2/auth/TokenAccessor.scala index 4147fe4..205e244 100644 --- a/module/src/main/scala/jp/t2v/lab/play2/auth/TokenAccessor.scala +++ b/module/src/main/scala/jp/t2v/lab/play2/auth/TokenAccessor.scala @@ -21,7 +21,7 @@ trait TokenAccessor { // Do not change this unless you understand the security issues behind timing attacks. // This method intentionally runs in constant time if the two strings have the same length. // If it didn't, it would be vulnerable to a timing attack. - def safeEquals(a: String, b: String) = { + protected def safeEquals(a: String, b: String) = { if (a.length != b.length) { false } else { diff --git a/project/Build.scala b/project/Build.scala index fc2a2fb..51a85fe 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -9,7 +9,7 @@ object ApplicationBuild extends Build { val playVersion = play.core.PlayVersion.current lazy val baseSettings = Seq( - version := "0.13.4", + version := "0.13.5", scalaVersion := "2.10.4", crossScalaVersions := Seq("2.10.4", "2.11.1"), organization := "jp.t2v",