Skip to content

Commit 9e23534

Browse files
authored
Merge pull request noha#10 from noha/add-rsa256-signing
Add rsa256 signing
2 parents 24dedbb + 6971985 commit 9e23534

42 files changed

Lines changed: 302 additions & 25 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ sudo: false
44
os:
55
- linux
66

7-
matrix:
8-
include:
9-
- smalltalk: Pharo64-7.0
10-
smalltalk_config: .smalltalk.ston
11-
- smalltalk: Pharo32-7.0
12-
smalltalk_config: .smalltalk.ston
13-
- smalltalk: Pharo32-6.1
14-
smalltalk_config: .smalltalk-legacy.ston
15-
- smalltalk: Pharo32-5.0
16-
smalltalk_config: .smalltalk-legacy.ston
7+
smalltalk:
8+
- Pharo64-8.0
9+
- Pharo64-7.0
10+
- Pharo32-6.1
Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
baselines
22
baseline: spec
33
<baseline>
4-
5-
spec for: #'common' do: [
6-
spec baseline: 'NeoJSON'
7-
with: [ spec repository: 'github://svenvc/NeoJSON:master/repository' ].
8-
spec
9-
package: #'JSONWebToken-Core' with: [
10-
spec requires: #( 'NeoJSON' ) ];
11-
package: 'JSONWebToken-Tests' with: [
12-
spec requires: #(#'JSONWebToken-Core' ) ] ]
4+
spec
5+
for: #common
6+
do: [ spec
7+
baseline: 'NeoJSON'
8+
with: [ spec repository: 'github://svenvc/NeoJSON:master/repository' ].
9+
spec
10+
baseline: 'OpenSSL'
11+
with: [ spec repository: 'github://PierceNg/OpenSSL-Pharo/src-st' ].
12+
spec
13+
package: #'JSONWebToken-Core'
14+
with: [ spec requires: #('NeoJSON') ];
15+
package: 'JSONWebToken-Core-Tests'
16+
with: [ spec requires: #(#'JSONWebToken-Core') ];
17+
package: 'JSONWebToken-OpenSSL'
18+
with: [ spec requires: #(#'JSONWebToken-Core' 'OpenSSL') ];
19+
package: 'JSONWebToken-OpenSSL-Tests'
20+
with: [ spec requires: #(#'JSONWebToken-OpenSSL') ].
21+
spec
22+
group: 'Core' with: #('JSONWebToken-Core');
23+
group: 'SSL' with: #('JSONWebToken-OpenSSL');
24+
group: 'Tests' with: #('JSONWebToken-Core-Tests' 'JSONWebToken-OpenSSL-Tests');
25+
group: 'default' with: #('Core' 'SSL' 'Tests') ]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"separateMethodMetaAndSource" : false,
3+
"noMethodMetaData" : true,
4+
"useCypressPropertiesFile" : true
5+
}
Lines changed: 1 addition & 0 deletions
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
running
2+
setUp
3+
4+
super setUp.
5+
encoder := Base64UrlEncoder new
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tests
2+
testComparisonAgainstBase64
3+
4+
self
5+
assert: #[87 6 86 119 38 150 198 198 254 255] base64Encoded equals: 'VwZWdyaWxsb+/w==';
6+
assert: ( encoder encode: #[87 6 86 119 38 150 198 198 254 255] ) equals: 'VwZWdyaWxsb-_w=='
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tests
2+
testDecode
3+
4+
self assert: ( encoder decode: 'VwZWdyaWxsb-_w==' ) equals: #[87 6 86 119 38 150 198 198 254 255]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tests
2+
testEncode
3+
4+
self assert: ( encoder encode: #[87 6 86 119 38 150 198 198 254 255] ) equals: 'VwZWdyaWxsb-_w=='
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"commentStamp" : "<historical>",
3+
"super" : "TestCase",
4+
"category" : "JSONWebToken-Core-Tests",
5+
"classinstvars" : [ ],
6+
"pools" : [ ],
7+
"classvars" : [ ],
8+
"instvars" : [
9+
"encoder"
10+
],
11+
"name" : "Base64UrlEncoderTest",
12+
"type" : "normal"
13+
}
Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)