Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Aud with a Seq[String] #19

Open
chan32167 opened this issue Jan 5, 2018 · 0 comments
Open

Aud with a Seq[String] #19

chan32167 opened this issue Jan 5, 2018 · 0 comments

Comments

@chan32167
Copy link

chan32167 commented Jan 5, 2018

An exception or error caused a run to abort: play.api.libs.json.JsArray.(Lscala/collection/Seq;)V
java.lang.NoSuchMethodError: play.api.libs.json.JsArray.(Lscala/collection/Seq;)V
at io.igl.jwt.Aud.(Claims.scala:41)
at io.igl.jwt.Aud$.apply(Claims.scala:47)
....

Hello i have used your library and i am trying to pass a Seq[String] to the aud claim but the above error appears, i have tried with play json 2.6.0.

def createTokenWithRole(userName: String, role: Seq[String]): String = { val jwt = new DecodedJwt(Seq(Alg(Algorithm.HS256), Typ("JWT")), Seq(Iss(userName), Aud(role))) jwt.encodedAndSigned(secretKey) }

using scala 2.12.3

with dependencyOverrides ++= Set("com.typesafe.play" %% "play-json" % "2.6.7")
in my sbt file it works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant