Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Exception running example simple-oauth #278

Closed
bravegag opened this issue Sep 8, 2015 · 9 comments
Closed

Exception running example simple-oauth #278

bravegag opened this issue Sep 8, 2015 · 9 comments
Labels

Comments

@bravegag
Copy link
Contributor

bravegag commented Sep 8, 2015

I am looking for a linkedin example and trying to see whether the simple-oauth application has it and works I get the following exception.

Unexpected exception

RuntimeException: Provider 'google' missing needed setting 'clientId'
No source available, here is the exception stack trace:

->java.lang.RuntimeException: Provider 'google' missing needed setting 'clientId'

 com.feth.play.module.pa.providers.AuthProvider.onStart(AuthProvider.java:74)

 play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)

 play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)

 scala.collection.Iterator$class.foreach(Iterator.scala:750)

 scala.collection.AbstractIterator.foreach(Iterator.scala:1202)

 scala.collection.IterableLike$class.foreach(IterableLike.scala:72)

 play.api.Plugins.foreach(Plugins.scala:57)

 play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:91)

 play.api.Play$$anonfun$start$1.apply(Play.scala:91)

 play.api.Play$$anonfun$start$1.apply(Play.scala:91)

 play.utils.Threads$.withContextClassLoader(Threads.scala:21)

 play.api.Play$.start(Play.scala:90)

 play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:156)

 play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:121)

 scala.Option.map(Option.scala:146)

 play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:121)

 play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:119)

 scala.util.Success.flatMap(Try.scala:230)

 play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:119)

 play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:111)

 scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)

 scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)

 java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)

 java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

 java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

 java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

 java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
@joscha
Copy link
Owner

joscha commented Sep 8, 2015

For each provider you want to use (Google is one example), you need to
define your clientId and clientSecret in the config file. Have a look at
the .conf file and it tells you where you can get them!
On 9 Sep 2015 5:45 am, "Giovanni Azua" notifications@github.com wrote:

I am looking for a linkedin example and trying to see whether the
simple-oauth application has it and works I get the following exception.

Unexpected exception

RuntimeException: Provider 'google' missing needed setting 'clientId'
No source available, here is the exception stack trace:

->java.lang.RuntimeException: Provider 'google' missing needed setting
'clientId'

com.feth.play.module.pa.providers.AuthProvider.onStart(AuthProvider.java:74)

play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)

play.api.Play$$anonfun$start$1$$anonfun$apply$mcV$sp$1.apply(Play.scala:91)

scala.collection.Iterator$class.foreach(Iterator.scala:750)

scala.collection.AbstractIterator.foreach(Iterator.scala:1202)

scala.collection.IterableLike$class.foreach(IterableLike.scala:72)

play.api.Plugins.foreach(Plugins.scala:57)

play.api.Play$$anonfun$start$1.apply$mcV$sp(Play.scala:91)

play.api.Play$$anonfun$start$1.apply(Play.scala:91)

play.api.Play$$anonfun$start$1.apply(Play.scala:91)

play.utils.Threads$.withContextClassLoader(Threads.scala:21)

play.api.Play$.start(Play.scala:90)

play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:156)

play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:121)

scala.Option.map(Option.scala:146)

play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:121)

play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:119)

scala.util.Success.flatMap(Try.scala:230)

play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:119)

play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:111)

scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)

scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)

java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)

java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)


Reply to this email directly or view it on GitHub
#278.

@bravegag
Copy link
Contributor Author

bravegag commented Sep 9, 2015

Thank you! btw is this the application simple-oauth the one deployed as live demo in heroku?

@joscha
Copy link
Owner

joscha commented Sep 9, 2015

No, that's the usage one (well, an old version of it)
On 9 Sep 2015 8:21 pm, "Giovanni Azua" notifications@github.com wrote:

Thank you! btw is this the application simple-oauth the one deployed in as
live demo in heroku?


Reply to this email directly or view it on GitHub
#278 (comment)
.

@bravegag
Copy link
Contributor Author

bravegag commented Sep 9, 2015

ahh but the usage one in master doesn't have the linkedin example I am after ... :( do you have a code example specifically for linkedin? or maybe the old version how to do it?

@joscha
Copy link
Owner

joscha commented Sep 9, 2015

You just need to enable the plugin, that's it. You can either see how that
works in the sample app or read the .md file about it.
On 9 Sep 2015 20:27, "Giovanni Azua" notifications@github.com wrote:

ahh but the usage one in master doesn't have the linkedin example I am
after ... :( do you have a code example specifically for linkedin? or maybe
the old version how to do it?


Reply to this email directly or view it on GitHub
#278 (comment)
.

@bravegag
Copy link
Contributor Author

bravegag commented Sep 9, 2015

But there must be specific code to do when I want to login to my application via Linkedin and I wanted to find an example ... the usage example doesn't include linkedin ... I checked already. Thanks for your support. I just need a linkedin example that's all.

@joscha
Copy link
Owner

joscha commented Sep 9, 2015

All providers work the same way. It makes no difference whether it is
twitter, LinkedIn or Google. You add the plugin, add the credentials, done.
On 9 Sep 2015 9:37 pm, "Giovanni Azua" notifications@github.com wrote:

But there must be specific code to do when I want to login to my
application via Linkedin and I wanted to find an example ... the usage
example doesn't include linkedin ... I checked already. Thanks for your
support. I just need a linkedin example that's all.


Reply to this email directly or view it on GitHub
#278 (comment)
.

@bravegag
Copy link
Contributor Author

Is there a sample app usage written in Scala rather than Java?

@joscha
Copy link
Owner

joscha commented Sep 10, 2015

You can find one in #212.
I am going to close this issue now, as the initial problem is resolved.

@joscha joscha closed this as completed Sep 10, 2015
@joscha joscha added the invalid label Sep 10, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants