Skip to content

Commit 63b01fb

Browse files
authored
Merge branch 'master' into pharo10-openssl1.1
2 parents fdedcbb + fa69be3 commit 63b01fb

File tree

3 files changed

+23
-15
lines changed

3 files changed

+23
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
push:
1313
branches:
14-
- development
14+
- master
1515
- pharo9-openssl1.1
1616
- pharo10-openssl1.1
1717

@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
smalltalk: [ Pharo64-11, Pharo64-10, Pharo64-9.0 ]
23+
smalltalk: [ Pharo64-12, Pharo64-11, Pharo64-10, Pharo64-9.0 ]
2424
name: ${{ matrix.smalltalk }}
2525
steps:
2626
- uses: actions/checkout@v2

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ For pharo9 and above use
1313
```Smalltalk
1414
Metacello new
1515
baseline:'JSONWebToken';
16-
repository: 'github://noha/JSONWebToken:pharo9-openssl1.1/source';
17-
load
18-
```
19-
20-
For pharo8 and below use
21-
22-
```Smalltalk
23-
Metacello new
24-
baseline:'JSONWebToken';
25-
repository: 'github://noha/JSONWebToken:master/source';
16+
repository: 'github://noha/JSONWebToken/source';
2617
load
2718
```
2819

source/JSONWebToken-Core/JWTClaimsSet.class.st

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Class {
55
#name : 'JWTClaimsSet',
66
#superclass : 'Object',
77
#instVars : [
8-
'claims'
8+
'claims',
9+
'strict'
910
],
1011
#category : 'JSONWebToken-Core-Base',
1112
#package : 'JSONWebToken-Core',
@@ -24,8 +25,11 @@ JWTClaimsSet >> asJson [
2425
]
2526

2627
{ #category : 'accessing - basic' }
27-
JWTClaimsSet >> at: aString [
28-
^ claims at: aString
28+
JWTClaimsSet >> at: aString [
29+
30+
^ strict
31+
ifTrue: [ claims at: aString ]
32+
ifFalse: [ claims at: aString ifAbsent: [ ] ]
2933
]
3034

3135
{ #category : 'accessing - basic' }
@@ -93,6 +97,18 @@ JWTClaimsSet >> authorizedParty: anObject [
9397
self at: 'azp' put: anObject
9498
]
9599

100+
{ #category : 'public' }
101+
JWTClaimsSet >> beLenient [
102+
103+
strict := false
104+
]
105+
106+
{ #category : 'public' }
107+
JWTClaimsSet >> beStrict [
108+
109+
strict := true
110+
]
111+
96112
{ #category : 'accessing' }
97113
JWTClaimsSet >> claims [
98114
^ claims
@@ -142,6 +158,7 @@ JWTClaimsSet >> iat: anObject [
142158
JWTClaimsSet >> initialize [
143159
super initialize.
144160
claims := Dictionary new.
161+
strict := true
145162
]
146163

147164
{ #category : 'accessing' }

0 commit comments

Comments
 (0)