Hi Jérôme,
I'm sorry you think its very negative feedback. I'm not trying to upset
you. I'm just saying what I did.
I'm on maven 2.2.1 (just lazy). Maven is /very/ stateful, so unless you've
moved your .m2 directory the results are not worth much. Here is my diff on
the pom
diff --git a/pom.xml b/pom.xml
index b1de4ff..02f918b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,6 +6,15 @@
<packaging>war</packaging>
<name>scribeupshirodemo</name>
<description>scribeupshirodemo</description>
+ <repositories>
+ <repository>
+ <id>sonatype-snapshots.oss.sonatype.org</id>
+ <name>Sonatype snapshots</name>
+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <layout>default</layout>
+ </repository>
+ </repositories>
+
<dependencies>
<dependency>
<groupId>io.buji</groupId>
@@ -22,6 +31,22 @@
<artifactId>jcl-over-slf4j</artifactId>
<version>1.6.4</version>
</dependency>
+ <dependency>
+ <groupId>org.scribe</groupId>
+ <artifactId>scribe</artifactId>
+ <version>1.3.2</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-core-asl</artifactId>
+ <version>1.9.9</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.jackson</groupId>
+ <artifactId>jackson-mapper-asl</artifactId>
+ <version>1.9.9</version>
+ </dependency>
+
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
I just kept going until it worked...
My point about the Email was that for Google you need to use a different
end-point
<https://developers.google.com/accounts/docs/OAuth2Login#scopeparameter>
(I don't want the full profile, only the Email, or as little in addition to
the Email that I can).
My issue with the multiple providers is that (a) I need to parse each one
anyway, which is the bulk of the work, and (b) each time someone authorises
I have to do some database work (checking and adding users). It wasn't at
the time clear how much work this would be and I /knew/ that it was a couple
of hours the other way. Pragmatism.
If you want to discuss more, better to do privately
([email protected]).
My code is available to you in the Github repo. For the rasons above
(stateful maven) I'm not 100% sure it will run out of the box. A
constructive approach (work for you though) would be to show me how I can
duplicate current functionality with less code. Then I'll use buji!
BTW there are a couple of other issues with which I had trouble (with
scribe). The most serious was that I can't use nonce as the code stands,
which is a security worry. Nothing to do with buji, but I do have plans for
fixing the issue at some point...
Sorry again for any upset.
Tim
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/OAuth-demo-tp7577850p7577857.html
Sent from the Shiro User mailing list archive at Nabble.com.