Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trunk #2

Open
wants to merge 583 commits into
base: amber-0.10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
583 commits
Select commit Hold shift + click to select a range
3c2dff7
OLTU-114 - JWT header/claimsset don't support custom fields
simonetripodi Sep 17, 2013
9971b4e
releng: JWT re-enabled for deploy
simonetripodi Sep 17, 2013
44dfa34
trivial: added missing org.apache.oltu.oauth2.jwt package documentation
simonetripodi Sep 17, 2013
91da758
[OLTU-117] Replace JWTUtils with JWT(Reader|Writer)
simonetripodi Sep 17, 2013
cbeb8f3
[OLTU-117] Replace JWTUtils with JWT(Reader|Writer)
simonetripodi Sep 18, 2013
bed7f2a
trivial: code format
simonetripodi Sep 18, 2013
f3e1f3a
trivial: no needs to extends Assert class for test cases, just import…
simonetripodi Sep 18, 2013
cfd6a41
[OLTU-117] Replace JWTUtils with JWT(Reader|Writer)
simonetripodi Sep 18, 2013
c363aed
trivial: code format
simonetripodi Sep 18, 2013
e1bb72e
trivial: updated ignore list
simonetripodi Sep 18, 2013
be0359d
trivial: updated ignore list
simonetripodi Sep 18, 2013
622b772
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 18, 2013
d4159d4
fixed potential NPE when users pass a null type to cast the custom fi…
simonetripodi Sep 18, 2013
2e54539
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 18, 2013
f141780
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 18, 2013
001b070
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 18, 2013
352adf2
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 18, 2013
465d885
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 19, 2013
f1214c7
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 19, 2013
17fd542
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 19, 2013
d32fbb6
trivial: typo
simonetripodi Sep 19, 2013
b94fd7b
trivial: improved toString() representation
simonetripodi Sep 19, 2013
d06c56b
trivial: improved toString() representation
simonetripodi Sep 19, 2013
9453a06
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 19, 2013
c8eddfa
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 20, 2013
81371d3
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 20, 2013
013729a
trivial: just inverted authentication header order
simonetripodi Sep 20, 2013
a7a49bc
@releng updating the website
asanso Sep 20, 2013
e0e5c38
@releng updating the website
asanso Sep 20, 2013
0f422c3
@releng updating the website
asanso Sep 20, 2013
e19bfc9
trivial: no tabs
simonetripodi Sep 24, 2013
afa0bc1
releng: updated spring FW to latest released version
simonetripodi Sep 24, 2013
ed4dbb2
trivial: code format
simonetripodi Sep 24, 2013
b74da21
OLTU-119 Add a css to demo application
simonetripodi Sep 24, 2013
7b1f908
OLTU-119 Add a css to demo application
simonetripodi Sep 24, 2013
7974fb8
OLTU-119 Add a css to demo application
simonetripodi Sep 25, 2013
31d05ae
OLTU-120 - Invalid URL for Microsoft token endpoint in OAuthProviderType
asanso Sep 25, 2013
333478c
OLTU-119 Add a css to demo application
simonetripodi Sep 25, 2013
4095798
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 25, 2013
cf19988
OLTU-118 - Implement JWS of the JOSE working group
simonetripodi Sep 26, 2013
cd47200
OLTU-121 Make OAuthProblemException extensible
Oct 1, 2013
31ec1f3
OLTU-122 - Broken Authorization Endpoint error page
asanso Oct 14, 2013
abba9ab
OLTU-124 - Replace Jettison with org.json
simonetripodi Oct 28, 2013
36fa9a8
releng: updated ignore list
simonetripodi Oct 28, 2013
c8d6d4b
OLTU-125 - Create a 'commons' module for JSON reader/writer
simonetripodi Oct 29, 2013
b5b58ab
@releng: updated ignore list
simonetripodi Oct 29, 2013
019b8b2
OLTU-123 - logo for Apache Oltu
simonetripodi Oct 29, 2013
2e3fca1
OLTU-124 - Replace Jettison with org.json
simonetripodi Oct 30, 2013
39f602c
OLTU-123 - logo for Apache Oltu
simonetripodi Oct 30, 2013
b9e8afc
@releng added svn:ignore
asanso Dec 20, 2013
4515426
@releng added svn:ignore
asanso Dec 20, 2013
1d5c3b5
@releng added svn:ignore
asanso Dec 20, 2013
79e40b3
OLTU-131 - Signature parsing from access token is broken for characte…
asanso Dec 20, 2013
c34ed82
OLTU-132 - SignatureMethod should take in consideration also the header
asanso Dec 20, 2013
6c12a69
OLTU-132 - SignatureMethod should take in consideration also the header
asanso Dec 20, 2013
784a843
OLTU-133 - Add HS256 implementation of SignatureMethod
asanso Dec 20, 2013
175ae08
OLTU-131 - Signature parsing from access token is broken for characte…
asanso Dec 20, 2013
cf501d3
OLTU-131 - Signature parsing from access token is broken for characte…
asanso Dec 20, 2013
e6a370f
OLTU-131 - Signature parsing from access token is broken for characte…
asanso Dec 20, 2013
dc63257
OLTU-131 - Signature parsing from access token is broken for characte…
asanso Dec 20, 2013
6579a1c
@releng minor fix (moving the unit test to the correct package)
asanso Jan 8, 2014
70ca793
@releng minor fix (moving the unit test to the correct package)
asanso Jan 8, 2014
2fa9b7c
[maven-release-plugin] prepare release org.apache.oltu.commons.parent-1
simonetripodi Feb 3, 2014
9aef441
[maven-release-plugin] rollback the release of org.apache.oltu.common…
simonetripodi Feb 3, 2014
e3c5a51
[maven-release-plugin] prepare release org.apache.oltu.commons.parent-1
simonetripodi Feb 3, 2014
05c831c
[maven-release-plugin] rollback the release of org.apache.oltu.common…
simonetripodi Feb 3, 2014
46ab548
added missing SCM info, that drive SCM in a wrong path and release fails
simonetripodi Feb 3, 2014
532f5c1
[maven-release-plugin] prepare release org.apache.oltu.commons.parent-1
simonetripodi Feb 3, 2014
68f0734
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 3, 2014
5a5a147
all modules vesion rollback, release failed
simonetripodi Feb 3, 2014
d5e5273
[maven-release-plugin] prepare release org.apache.oltu.commons.parent-1
simonetripodi Feb 3, 2014
ab07bf7
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 3, 2014
fda2aed
all modules vesion rollback, release failed (again)
simonetripodi Feb 3, 2014
978fe37
using autoVersionSubmodules=true forces the submodules to inherit the…
simonetripodi Feb 3, 2014
26c17ce
releng: plugins update
simonetripodi Feb 3, 2014
f872ea9
[maven-release-plugin] prepare release org.apache.oltu.parent-2
simonetripodi Feb 3, 2014
d923a18
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 3, 2014
247959e
maven-bundle-plugin:2.4.0 has issues with current oltu build, back to…
simonetripodi Feb 3, 2014
77f8415
[maven-release-plugin] prepare release org.apache.oltu.parent-2
simonetripodi Feb 3, 2014
a8a76da
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 3, 2014
c652b53
preparing metadata for next release
simonetripodi Feb 3, 2014
06cf961
[maven-release-plugin] prepare release org.apache.oltu.commons.parent-1
simonetripodi Feb 3, 2014
58b8598
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 3, 2014
9d76537
preparing next release metadata
simonetripodi Feb 3, 2014
6dd380d
fixed RAT violation - license header
simonetripodi Feb 3, 2014
baa0a26
[maven-release-plugin] prepare release org.apache.oltu.jose.parent-1
simonetripodi Feb 3, 2014
112dcc5
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 3, 2014
54dd935
releng: export all subpackages in each bundle
simonetripodi Feb 23, 2014
16dcc07
[maven-release-plugin] prepare release org.apache.oltu.oauth2.parent-…
simonetripodi Feb 23, 2014
38937d5
[maven-release-plugin] rollback the release of org.apache.oltu.oauth2…
simonetripodi Feb 23, 2014
335bdc9
fixing broken SCM info
simonetripodi Feb 23, 2014
6b3e821
[maven-release-plugin] prepare release org.apache.oltu.oauth2.parent-…
simonetripodi Feb 23, 2014
94b578e
[maven-release-plugin] prepare for next development iteration
simonetripodi Feb 23, 2014
f20857b
[maven-release-plugin] rollback the release of org.apache.oltu.oauth2…
simonetripodi Feb 23, 2014
51d9c0a
releng: updated parent to latest stable released version
simonetripodi Feb 24, 2014
5fcc7dd
releng: dependencies updated to latest released version
simonetripodi Feb 24, 2014
425b988
releng: relaxing restrictions, authzserver doesn't respect the conven…
simonetripodi Feb 24, 2014
7ee324f
releng: it doesn't have anymore sense to maintain a single file with …
simonetripodi Mar 5, 2014
0b3950d
[maven-release-plugin] prepare release org.apache.oltu.oauth2.parent-…
simonetripodi Mar 5, 2014
e2f7061
[maven-release-plugin] prepare for next development iteration
simonetripodi Mar 5, 2014
10b57dd
simplified download page
simonetripodi Mar 5, 2014
a0ee19a
OLTU-138 Fix possible index out of bounds exception. Remove duplicate…
Mar 6, 2014
16197b7
releng: updated OpenID Connect parent & modules versions
simonetripodi Mar 7, 2014
8973f10
OLTU-139 - Publish all Javadocs - preparing the main site in order to…
simonetripodi Mar 7, 2014
990b87c
OLTU-139 - Publish all Javadocs - use the 'site' profile to publish t…
simonetripodi Mar 7, 2014
5b7a004
OLTU-139 - Publish all Javadocs: all Oltu modules now support APIs do…
simonetripodi Mar 7, 2014
cc79690
OLTU-143 - Add support for public key signature algorithm to the JWS …
asanso Apr 1, 2014
3505c77
OLTU-143 - Add support for public key signature algorithm to the JWS …
asanso Apr 1, 2014
e5707da
https://issues.apache.org/jira/browse/OLTU-143
asanso Apr 1, 2014
7951f07
OLTU-144 - increase unit test code coverage of the JWS module
asanso Apr 2, 2014
9ab7011
@releng minor fix
asanso Apr 2, 2014
a695a3f
@releng minor fix
asanso Apr 4, 2014
6888990
@releng minor fix
asanso Apr 4, 2014
f40f9ee
OLTU-152 - Wrong usage of Base64 in TokenDecoder
asanso Jun 3, 2014
b1f7fc0
OLTU-105 - Android 4.1 expects "realm" as first parameter in www-auth…
simonetripodi Jun 25, 2014
f9562c7
trivial: code format
simonetripodi Jun 25, 2014
ca1de9e
OLTU-153 - Parent POM should have URL of user mailing list archive
simonetripodi Jun 26, 2014
f9aec9a
OLTU-147 - Upgrade commons-codec 1.8 to 1.9
simonetripodi Jun 26, 2014
d093ec0
OLTU-148 - Upgrade json 20131018 to 20140107
simonetripodi Jun 26, 2014
6b5f446
OLTU-146 - Upgrade JUnit 4.10 to 4.11
simonetripodi Jun 26, 2014
acd6c2c
OLTU-145 - Upgrade the underlying logging frameworks
simonetripodi Jun 26, 2014
e636996
OLTU-134 - Broken OSGi metadata
simonetripodi Jul 7, 2014
afe2864
OLTU-134 - Broken OSGi metadata
simonetripodi Jul 8, 2014
1a6bbe8
OLTU-160 Add the implicit grant type
Sep 12, 2014
f0ec1dc
OLTU-161 - JWTClaimsSetParser fails when aud is an array
simonetripodi Oct 7, 2014
558bcf0
OLTU-147 - Upgrade commons-codec 1.8 to 1.9
asanso Nov 3, 2014
f763aa3
OLTU-147 - Upgrade commons-codec 1.8 to 1.9
asanso Nov 4, 2014
c99b87d
releng: replaced deprecated Assert class
simonetripodi Dec 5, 2014
28443ee
releng: suppressed type inference warning by fixing them
simonetripodi Dec 5, 2014
41d8a28
releng: muted test, suppressed syserr print
simonetripodi Dec 5, 2014
f10663b
trivial: static Assert.assertEquals import rather than static method …
simonetripodi Dec 5, 2014
b30abc3
releng: updated ignore list
simonetripodi Feb 11, 2015
413d148
[maven-release-plugin] prepare release org.apache.oltu.parent-3
simonetripodi Jul 6, 2015
0e2c9e7
[maven-release-plugin] prepare for next development iteration
simonetripodi Jul 6, 2015
6ece040
@releng fixing build
asanso Sep 14, 2015
49d3d39
added Commercial Support page
simonetripodi Sep 14, 2015
a58625d
OLTU-181 - Implement OAuth Server Assertions Framework
asanso Sep 15, 2015
94d2f77
OLTU-181 - Implement OAuth Server Assertions Framework
asanso Sep 15, 2015
da5b041
OLTU-181 - Implement OAuth Server Assertions Framework
asanso Sep 15, 2015
d520b52
OLTU-181 - Implement OAuth Server Assertions Framework
asanso Sep 15, 2015
ebe3941
add referenced resources
asanso Sep 15, 2015
c4e350e
releng - update parent pom to v3 in order to prepare the incoming rel…
simonetripodi Sep 17, 2015
d1f9de7
[maven-release-plugin] prepare release org.apache.oltu.oauth2.parent-…
simonetripodi Sep 17, 2015
b1fe921
[maven-release-plugin] prepare for next development iteration
simonetripodi Sep 17, 2015
b981fe5
added OAuth book section
asanso Sep 17, 2015
ee3c173
added OAuth book section
asanso Sep 17, 2015
623c04b
added OAuth book section
asanso Sep 17, 2015
d14a77a
added OAuth book section
asanso Sep 17, 2015
f715809
added OAuth book section
asanso Sep 18, 2015
769f796
added OAuth book section
asanso Sep 18, 2015
da75e6b
added OAuth book section
asanso Sep 18, 2015
89186dc
added OAuth book section
asanso Sep 18, 2015
47422a5
OLTU-80 - Implement JWE support for JWT
asanso Feb 9, 2016
5f67369
OLTU-186 - Adding constant for HS256
asanso Feb 12, 2016
a3385f3
OLTU-187 Update version references to other OLTU modules
jashaj Feb 15, 2016
811f8e8
OLTU-156 Update to latest ASF parent pom to run site plugin with Mave…
jashaj Feb 15, 2016
0b6e162
OLTU-156 Refer to KEYS file on ASF server
jashaj Feb 15, 2016
fb8c4fc
OLTU-156 Update links and use latest ASF logo
jashaj Feb 15, 2016
3bb3f37
OLTU-187 Bundle plugin was mentioned twice. Added my committer info.
jashaj Feb 15, 2016
398c7f9
OLTU-186 - Adding constant for HS256
asanso Feb 18, 2016
02c7130
OLTU-80 - Implement JWE support for JWT
asanso Feb 18, 2016
d257135
OLTU-80 - Implement JWE support for JWT
asanso Feb 19, 2016
a31ee29
OLTU-80 - Implement JWE support for JWT
asanso Feb 19, 2016
5b478f3
OLTU-80 - Implement JWE support for JWT
asanso Feb 19, 2016
19e128d
OLTU-80 - Implement JWE support for JWT
asanso Feb 22, 2016
637781a
OLTU-80 - Implement JWE support for JWT
asanso Feb 22, 2016
5e7a0a2
OLTU-187 Update to latest apache parent in root. Use site plugin vers…
jashaj Feb 22, 2016
0005c17
OLTU-156 Add latest releases to download page and update to latest skin
jashaj Feb 22, 2016
48a801d
OLTU-182 Password can contain colon : characters. Thanks Adam Campbel…
jashaj Feb 22, 2016
ac38c8d
OLTU-185 Allow access to the response headers in a resource request
Feb 22, 2016
06feb9e
Update committer info
Feb 22, 2016
47533dd
OLTU-185 Fix tests.. Make sure that the validators are set, also when…
Feb 23, 2016
df4542d
OLTU-185 Revert accidental commit
Feb 23, 2016
6c934b5
OLTU-178 Add the response code when the validateErrorResponse method …
Feb 23, 2016
d931b42
OLTU-80 - Implement JWE support for JWT
asanso Feb 23, 2016
aa0d87b
OLTU-80 - Implement JWE support for JWT
asanso Feb 24, 2016
ce6167d
OLTU-80 - Implement JWE support for JWT
asanso Feb 24, 2016
8bd94ce
OLTU-80 - Implement JWE support for JWT
asanso Feb 24, 2016
1a0643b
OLTU-80 - Implement JWE support for JWT
asanso Feb 24, 2016
e83c88f
OLTU-156 missing PGP keys
jashaj Feb 25, 2016
6684534
OLTU-156 styling + using versions from the ASF parent pom
jashaj Feb 25, 2016
77bd487
Update generic links in the site from http to https
jashaj Feb 25, 2016
1095c5b
Update statistics
jashaj Feb 25, 2016
4d0bfe5
OLTU-187 Add profile to compile the project with Java6 but use a high…
jashaj Feb 25, 2016
2a0a19d
OLTU-80 - Implement JWE support for JWT
asanso Feb 26, 2016
58bea2c
OLTU-80 - Implement JWE support for JWT
asanso Feb 26, 2016
1b0753f
OLTU-80 - Implement JWE support for JWT
asanso Feb 26, 2016
9e853d1
OLTU-154 Fix logging config and add error logging in client-demo
jashaj Feb 28, 2016
36155ad
OLTU-80 - Implement JWE support for JWT
asanso Feb 29, 2016
bdd10e2
OLTU-80 - Implement JWE support for JWT
asanso Feb 29, 2016
396cafc
OLTU-50 Improve the client demo in order to work with context root di…
jashaj Feb 29, 2016
7937147
OLTU-191 Fix fetching resources. Make sure the validator is set in al…
Mar 1, 2016
ea97a19
OLTU-29 Add token type to OAuth responses. Thanks Sam Gorial for the …
Mar 1, 2016
59ee353
OLTU-173 Fix GithubTokenRespons. Thanks Gualtiero Testa for the patch!
Mar 1, 2016
380cdce
OLTU-192 Export org.apache.oltu.openidconnect.client classes to the o…
jashaj Mar 1, 2016
bebe70a
OLTU-174 Add support for binary response bodies. Thanks to Julian Sed…
Mar 1, 2016
e6b7387
OLTU-12 Cleanup tabs
Mar 1, 2016
88732d5
OLTU-68 Add more tests to the OAuthUtils class. Thanks Marcin Sośnick…
Mar 1, 2016
9a0386b
OLTU-68 Remove unused method.
Mar 1, 2016
296f509
junit.assert.* is deprecated, use org.junit.*
jashaj Mar 2, 2016
a986b8d
Tommaso Teofili went Emeritus
asanso Mar 2, 2016
4a75dce
OLTU-59 Method isAuthorized() from OAuthDecision is not used in the O…
jashaj Mar 2, 2016
6e95312
OLTU-177 Fix ConditionalTagSupport error on startup in Tomcat 7. Than…
jashaj Mar 2, 2016
5810a24
OLTU-193 Add examples for scopes and resource endpoints to demonstrat…
jashaj Mar 2, 2016
28e2276
OLTU-80 - Implement JWE support for JWT
asanso Mar 3, 2016
41e129c
OLTU-80 - Implement JWE support for JWT
asanso Mar 3, 2016
14a1817
OLTU-80 - Implement JWE support for JWT
asanso Mar 3, 2016
c11613e
OLTU-195 URLConnectionClient PUT body content
jashaj Mar 28, 2016
c01289c
[maven-release-plugin] prepare release org.apache.oltu.parent-4
simonetripodi Apr 22, 2016
9ed0e18
[maven-release-plugin] prepare for next development iteration
simonetripodi Apr 22, 2016
5ad4217
org.apache.oltu.parent updated to v4
simonetripodi Apr 22, 2016
d51e4ab
added missing Apache License header
simonetripodi Apr 22, 2016
f3f83ad
added missing Apache License header
simonetripodi Apr 22, 2016
d7b4297
[maven-release-plugin] prepare release org.apache.oltu.oauth2.parent-…
simonetripodi Apr 22, 2016
85a132c
[maven-release-plugin] prepare for next development iteration
simonetripodi Apr 22, 2016
20689de
update pmc list
asanso Jun 13, 2016
07e4429
OLTU-196 - Type cast error in JWTClaimsSetParser
simonetripodi Jun 20, 2016
101ff39
Update downloads page with latest releases
jashaj Jul 4, 2016
77d3a60
Resolve dependencies after release
jashaj Jul 4, 2016
cbc627a
OLTU-196 Prevent ClassCastException with Integers
jashaj Jul 5, 2016
5d24a0d
OLTU-201 - Issue in JWS validation
asanso Jul 27, 2016
db33831
OLTU-201 - Issue in JWS validation
asanso Aug 1, 2016
ec5d53b
OLTU-200 - Wrong regex in TokenReader
asanso Aug 2, 2016
f080591
releng: update dependencies
simonetripodi Aug 2, 2016
eaf7d36
[maven-release-plugin] prepare release org.apache.oltu.commons.parent-2
simonetripodi Aug 2, 2016
af16cb5
[maven-release-plugin] prepare for next development iteration
simonetripodi Aug 2, 2016
f9693f4
@releng updating dependencies to prepare next releases
simonetripodi Aug 2, 2016
bd69a35
[maven-release-plugin] prepare release org.apache.oltu.jose.parent-2
simonetripodi Aug 2, 2016
9a082c9
[maven-release-plugin] prepare for next development iteration
simonetripodi Aug 2, 2016
c09d79f
Update parent to latest release
jashaj Aug 12, 2016
22287d0
OLTU-203 - Extend client demo with more provider
asanso Sep 7, 2016
fda5a0f
OLTU-203 - Extend client demo with more provider
asanso Sep 7, 2016
afa2684
OLTU-206 - org.apache.oltu.oauth2 packages are exported twice
simonetripodi Jan 30, 2017
1634a76
@releng: preparing JWT fix release as agreed in dev ML
simonetripodi Feb 7, 2017
5a8c949
@releng no snapshot dependencies in intermediate releases
simonetripodi Feb 7, 2017
e398ff6
[maven-release-plugin] prepare release org.apache.oltu.oauth2.jwt-1.0.3
asanso Feb 7, 2017
ffe1829
[maven-release-plugin] rollback the release of org.apache.oltu.oauth2…
asanso Feb 7, 2017
ba23bc9
@releng increase development version number
simonetripodi Feb 8, 2017
76fb9c0
Bumb version of jwt module after release
jashaj Jul 6, 2017
8542de3
add svn ignore
asanso Oct 25, 2017
09ce215
OLTU-209 - remove org.json
simonetripodi Oct 25, 2017
37de173
OLTU-209 - remove org.json
simonetripodi Oct 25, 2017
2d37dba
OLTU-214 - The Facebook client demo flow is broken
asanso Oct 25, 2017
205b9ea
OLTU-202 - Add possibility to use OAuthClient behind proxy - applied …
simonetripodi Oct 25, 2017
b2d427c
OLTU-197 - OAuthFilter looks for oauth.rs.provider-class init paramet…
simonetripodi Oct 25, 2017
abca6bd
OLTU-205 - JSON token response incorrect, google token has a unexpect…
asanso Oct 25, 2017
6b93bf8
OLTU-205 - JSON token response incorrect, google token has a unexpect…
asanso Oct 25, 2017
800a2aa
updated copyright year
simonetripodi Oct 25, 2017
778c47e
OLTU-209 - remove org.json
asanso Oct 25, 2017
a847c13
OLTU-215 Upgrade to Java 8
jashaj Oct 31, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 0 additions & 10 deletions DISCLAIMER

This file was deleted.

321 changes: 0 additions & 321 deletions KEYS

This file was deleted.

3 changes: 3 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Apache Oltu
Copyright 2010-2017 The Apache Software Foundation

This product includes software developed by
The Apache Software Foundation (http://www.apache.org/).
23 changes: 23 additions & 0 deletions commons/deploySite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

mvn clean site site:stage -P site
mvn scm-publish:publish-scm -Dusername=$1 -Dpassword=$2 -P site
49 changes: 49 additions & 0 deletions commons/encodedtoken/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.oltu.commons</groupId>
<artifactId>org.apache.oltu.commons.parent</artifactId>
<version>3-SNAPSHOT</version>
</parent>

<artifactId>org.apache.oltu.commons.encodedtoken</artifactId>
<version>1.0.2-SNAPSHOT</version>
<packaging>bundle</packaging>

<name>Apache Oltu - Commons - Encoded Token</name>
<description>Apache Oltu Encoded Token shared utility</description>

<properties>
<!--
OSGi settings
-->
<osgi.import>org.apache.commons.codec.binary;version="[1.4,2)"</osgi.import>
</properties>

<dependencies>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.9</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.oltu.commons.encodedtoken;

import java.nio.charset.Charset;

import org.apache.commons.codec.binary.Base64;

public abstract class TokenDecoder {

/**
* The {@code UTF-8} charset reference.
*/
private static final Charset UTF_8 = Charset.forName("UTF-8");

/**
* Empty Line separator for rfc 2045 section 6.8
* {@see org.apache.commons.codec.binary.Base64}
*/
private static final byte[] LINE_SEPARATOR = {};

public static final String base64Decode(String base64encoded) {
return new String(new Base64(-1, LINE_SEPARATOR, true).decode(base64encoded), UTF_8);
}

public static final byte[] base64DecodeToByte(String base64encoded) {
return new Base64(-1, LINE_SEPARATOR, true).decode(base64encoded);
}

public static final String base64Encode(String input) {
return new String(new Base64(-1, LINE_SEPARATOR, true).encode(input.getBytes(UTF_8)), UTF_8);
}

public static final String base64Encode(byte [] input) {
return new String(new Base64(-1, LINE_SEPARATOR, true).encode(input));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.oltu.commons.encodedtoken;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public abstract class TokenReader<T> extends TokenDecoder {

/**
* The Base64 JSON string default separator.
*/
private final Pattern base64urlTokenPattern = Pattern.compile("([a-zA-Z0-9-​_=]+)\\.([a-zA-Z0-9-_​=]+)\\.([a-zA-Z0-9-_=]+)");

/**
* Read the base64url token string
* @param base64String
* @return
*/
public T read(String base64String) {
if (base64String == null || base64String.isEmpty()) {
throw new IllegalArgumentException("Impossible to obtain a Token from a null or empty string");
}

// TODO improve multi-line tokens
StringBuilder buffer = new StringBuilder();
BufferedReader reader = new BufferedReader(new StringReader(base64String));
String line = null;
try {
while ((line = reader.readLine()) != null) {
buffer.append(line.trim());
}
} catch (IOException e) {
// it cannot happen
} finally {
try {
reader.close();
} catch (IOException e) {
// swallow it
}
}

Matcher matcher = base64urlTokenPattern.matcher(buffer.toString());
if (!matcher.matches()) {
throw new IllegalArgumentException(base64String
+ "is not a valid Token, it does not match with the pattern: "
+ base64urlTokenPattern.pattern());
}

// HEADER
String header = matcher.group(1);
String decodedHeader = base64Decode(header);

// BODY
String body = matcher.group(2);
String decodedBody = base64Decode(body);

// SIGNATURE
// Keep signature encoded in base64url
String signature = matcher.group(3);

return build(base64String, decodedHeader, decodedBody, signature);
}

/**
* Build the token reader
*
* @param rawString
* @param decodedHeader
* @param decodedBody
* @param encodedSignature
* @return
*/
protected abstract T build(String rawString, String decodedHeader, String decodedBody, String encodedSignature);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.oltu.commons.encodedtoken;

public abstract class TokenWriter<T> extends TokenDecoder {

public final String write(T token) {
if (token == null) {
throw new IllegalArgumentException("Impossible to build a Token from a null JWS representation.");
}

String header = writeHeader(token);
String encodedHeader = base64Encode(header);

String body = writeBody(token);
String encodedBody = base64Encode(body);

String signature = writeSignature(token);

return new StringBuilder()
.append(encodedHeader)
.append('.')
.append(encodedBody)
.append('.')
.append(signature)
.toString();
}

protected abstract String writeHeader(T token);

protected abstract String writeBody(T token);

protected abstract String writeSignature(T token);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* Common reusable Encoded Token utilities.
*/
package org.apache.oltu.commons.encodedtoken;
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.oltu.commons.encodedtoken;

import org.junit.Assert;
import org.junit.Test;

public class TokenReaderTest {

private TokenReader tokenReader;

@Test
public void test_read() {
tokenReader = new TokenReader<String>() {
protected String build(String rawString, String decodedHeader,
String decodedBody, String encodedSignature) {

return "";
}
};

String accessToken = "eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.cC4hiUPoj9Eetdgtv3hF80EGrhuB__dzERat0XF9g2VtQgr9PJbu3XOiZj5RZmh7AAuHIm4Bh-0Qc_lF5YKt_O8W2Fp5jujGbds9uJdbF9CUAr7t1dnZcAcQjbKBYNX4BAynRFdiuB--f_nZLgrnbyTyWzO75vRK5h6xBArLIARNPvkSjtQBMHlb1L07Qe7K0GarZRmB_eSN9383LcOLn6_dO--xi12jzDwusC-eOkHWEsqtFZESc6BfI7noOPqvhJ1phCnvWh6IeYI2w9QOYEUipUTI8np6LbgGY9Fs98rqVt5AXLIhWkWywlVmtVrBp0igcN_IoypGlUPQGe77Rw";
Assert.assertNotNull(tokenReader.read(accessToken));
}

@Test
public void test_read2() {
tokenReader = new TokenReader<String>() {
protected String build(String rawString, String decodedHeader,
String decodedBody, String encodedSignature) {
return null;
}
};
String accessToken = "BadToken";
try {
tokenReader.read(accessToken);
Assert.fail("failed test");
}catch (IllegalArgumentException e) {
//expected
}

}
}
Loading