Skip to content

Commit fb1fe15

Browse files
committed
fixes version
2 parents 7e36bfb + 2fee7f8 commit fb1fe15

Some content is hidden

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

51 files changed

+1298
-149
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ workflows:
2929
tags:
3030
only: /dev-v[0-9]+(\.[0-9]+)*/
3131
branches:
32-
ignore: /.*/
32+
only: /test-cicd\/.*/

.circleci/config_continue.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ jobs:
2525
- run: go version
2626
- run: rm -rf /etc/alternatives/java
2727
- run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java
28+
- run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz
2829
- run: go get ./...
2930
- run: (cd .circleci/ && ./doUnitTests.sh << parameters.cdi-version >>)
3031
- slack/status
3132
test-website:
3233
docker:
3334
- image: rishabhpoddar/supertokens_go_driver_testing
3435
resource_class: large
36+
parallelism: 4
3537
steps:
3638
- checkout
3739
- run: apt-get install lsof
@@ -40,13 +42,15 @@ jobs:
4042
- run: go version
4143
- run: rm -rf /etc/alternatives/java
4244
- run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java
45+
- run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz
4346
- run: go get ./...
4447
- run: (cd .circleci/ && ./website.sh)
4548
- slack/status
4649
test-authreact:
4750
docker:
4851
- image: rishabhpoddar/supertokens_go_driver_testing
4952
resource_class: large
53+
parallelism: 4
5054
steps:
5155
- checkout
5256
- run: apt-get install lsof
@@ -66,8 +70,12 @@ jobs:
6670
- run: go version
6771
- run: rm -rf /etc/alternatives/java
6872
- run: ln -s /usr/java/jdk-15.0.1/bin/java /etc/alternatives/java
73+
- run: wget https://go.dev/dl/go1.18.10.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go*.tar.gz
6974
- run: go get ./...
7075
- run: (cd .circleci/ && ./authReact.sh)
76+
- store_artifacts:
77+
path: test_report/backend.log
78+
destination: logs
7179
- slack/status
7280
test-success:
7381
docker:
@@ -86,7 +94,7 @@ workflows:
8694
tags:
8795
only: /dev-v[0-9]+(\.[0-9]+)*/
8896
branches:
89-
ignore: /.*/
97+
only: /test-cicd\/.*/
9098
- test-unit:
9199
requires:
92100
- test-dev-tag-as-not-passed
@@ -96,7 +104,7 @@ workflows:
96104
tags:
97105
only: /dev-v[0-9]+(\.[0-9]+)*/
98106
branches:
99-
ignore: /.*/
107+
only: /test-cicd\/.*/
100108
matrix:
101109
parameters:
102110
cdi-version: placeholder
@@ -109,7 +117,7 @@ workflows:
109117
tags:
110118
only: /dev-v[0-9]+(\.[0-9]+)*/
111119
branches:
112-
ignore: /.*/
120+
only: /test-cicd\/.*/
113121
- test-authreact:
114122
requires:
115123
- test-dev-tag-as-not-passed
@@ -119,7 +127,7 @@ workflows:
119127
tags:
120128
only: /dev-v[0-9]+(\.[0-9]+)*/
121129
branches:
122-
ignore: /.*/
130+
only: /test-cicd\/.*/
123131
- test-success:
124132
requires:
125133
- test-unit
@@ -132,3 +140,4 @@ workflows:
132140
only: /dev-v[0-9]+(\.[0-9]+)*/
133141
branches:
134142
ignore: /.*/
143+

.circleci/setupAndTestWithAuthReact.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,17 @@ npm i -d
5454
npm i git+https://github.com:supertokens/supertokens-node.git#$3
5555
cd ../../
5656
cd ../project/test/auth-react-server
57-
go run main.go &
57+
mkdir -p ../../test_report
58+
59+
echo "Testing with frontend auth-react: $2, node tag: $3, FREE core: $coreVersion, plugin-interface: $pluginInterfaceVersion" >> ../../test_report/backend.log
60+
SUPERTOKENS_DEBUG=1 go run main.go >> ../../test_report/backend.log 2>&1 &
5861
cd ../../../supertokens-auth-react/
5962

6063
# When testing with supertokens-auth-react for version >= 0.18 the SKIP_OAUTH
6164
# flag will not be checked because Auth0 is used as a provider so that the Thirdparty tests can run reliably.
6265
# In versions lower than 0.18 Github is used as the provider.
6366

64-
SKIP_OAUTH=true npm run test-with-non-node
67+
MOCHA_FILE=test_report/report_node.xml SKIP_OAUTH=true npm run test-with-non-node
6568
if [[ $? -ne 0 ]]
6669
then
6770
echo "test failed... exiting!"

.circleci/setupAndTestWithFrontend.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
5656
npm i
5757
cd ../../
5858
npm i -d
59-
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
59+
60+
if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
61+
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
62+
else
63+
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
64+
fi
65+
6066
if [[ $? -ne 0 ]]
6167
then
6268
echo "test failed... exiting!"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ apiPassword
2222
releasePassword
2323
.vscode/
2424
.idea/
25+
/test_report

CHANGELOG.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [unreleased]
99

1010

11-
## [0.14.1] - 2023-11-1
11+
## [0.16.5] - 2023-11-1
1212

1313
- Adds `debug` flag to the `TypeInput`. If set to `true`, debug logs will be printed.
1414

15+
## [0.16.4] - 2023-10-20
16+
17+
- Fixes an issue where sometimes the `Access-Control-Expose-Headers` header value would contain duplicates
18+
19+
## [0.16.3] - 2023-10-19
20+
21+
- Fixes an issue where trying to view details of a third party user would show an error for the user not being found when using the thirdpartypasswordless recipe
22+
23+
## [0.16.2] - 2023-10-17
24+
25+
- Fixes an issue where tenant ids returned for a user from the user get API of the dashboard recipe would always be nil for thirdpartyemailpassword and thirdpartypasswordless recipes
26+
27+
## [0.16.1] - 2023-10-03
28+
29+
### Changes
30+
31+
- Added `ValidateAccessToken` to the configuration for social login providers, this function allows you to verify the access token returned by the social provider. If you are using Github as a provider, there is a default implementation provided for this function.
32+
33+
### Fixes
34+
35+
- Fixes `timeJoined` casing in emailpassword and passwordless user objects.
36+
37+
## [0.16.0] - 2023-09-27
38+
39+
### Fixes
40+
41+
- Solves issue with clock skew during third party sign-in/up - https://github.com/supertokens/supertokens-golang/issues/362
42+
- Bumped `github.com/golang-jtw/jwt` version from v4 to v5.
43+
- Bumped `github.com/MicahParks/keyfunc` version from v1 to v2.
44+
45+
### Breaking Changes
46+
47+
- Minimum golang version supported is 1.18
48+
49+
## [0.15.0] - 2023-09-26
50+
51+
- Adds Twitter/X as a default provider to the third party recipe
52+
- Added a `Cache-Control` header to `/jwt/jwks.json` (`GetJWKSGET`)
53+
- Added `ValidityInSeconds` to the return value of the overrideable `GetJWKS` function.
54+
- This can be used to control the `Cache-Control` header mentioned above.
55+
- It defaults to `60` or the value set in the cache-control header returned by the core
56+
- This is optional (so you are not required to update your overrides). Returning undefined means that the header is not set.
57+
- Handle AWS Public URLs (ending with `.amazonaws.com`) separately while extracting TLDs for SameSite attribute.
58+
- Return `500` status instead of panic when `supertokens.Middleware` is used without initializing the SDK.
59+
- Updates fiber adaptor package in the fiber example.
60+
1561
## [0.14.0] - 2023-09-11
1662

1763
### Added

examples/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@ require (
77
github.com/gin-gonic/gin v1.7.4
88
github.com/go-chi/chi/v5 v5.0.4
99
github.com/go-chi/cors v1.2.0
10-
github.com/gofiber/adaptor/v2 v2.1.18
11-
github.com/gofiber/fiber/v2 v2.27.0
10+
github.com/gofiber/fiber/v2 v2.49.2
1211
github.com/gorilla/handlers v1.5.1
1312
github.com/gorilla/mux v1.8.0
14-
github.com/klauspost/compress v1.14.4 // indirect
1513
github.com/labstack/echo/v4 v4.6.1
1614
github.com/osohq/go-oso v0.21.0
1715
github.com/spf13/viper v1.8.1

0 commit comments

Comments
 (0)