Skip to content

Commit dfcdf49

Browse files
committed
chore: merging master to feature branch
2 parents b83a780 + 71a33d8 commit dfcdf49

File tree

10 files changed

+890
-13
lines changed

10 files changed

+890
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ jobs:
55
test:
66
docker:
77
- image: rishabhpoddar/supertokens_postgresql_plugin_test
8+
- image: rishabhpoddar/oauth-server-cicd
89
resource_class: large
910
steps:
1011
- add_ssh_keys:

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,66 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1010
- Unrestricts the connection pool size for the Bulk Import
1111
- Adds queries for Bulk Import
1212

13+
## [7.2.0] - 2024-10-03
14+
15+
- Compatible with plugin interface version 6.3
16+
- Adds support for OAuthStorage
17+
18+
### Migration
19+
20+
```sql
21+
CREATE TABLE IF NOT EXISTS oauth_clients (
22+
app_id VARCHAR(64),
23+
client_id VARCHAR(255) NOT NULL,
24+
is_client_credentials_only BOOLEAN NOT NULL,
25+
PRIMARY KEY (app_id, client_id),
26+
FOREIGN KEY(app_id) REFERENCES apps(app_id) ON DELETE CASCADE
27+
);
28+
29+
CREATE TABLE IF NOT EXISTS oauth_sessions (
30+
gid VARCHAR(255),
31+
app_id VARCHAR(64) DEFAULT 'public',
32+
client_id VARCHAR(255) NOT NULL,
33+
session_handle VARCHAR(128),
34+
external_refresh_token VARCHAR(255) UNIQUE,
35+
internal_refresh_token VARCHAR(255) UNIQUE,
36+
jti TEXT NOT NULL,
37+
exp BIGINT NOT NULL,
38+
PRIMARY KEY (gid),
39+
FOREIGN KEY(app_id, client_id) REFERENCES oauth_clients(app_id, client_id) ON DELETE CASCADE
40+
);
41+
42+
CREATE INDEX IF NOT EXISTS oauth_session_exp_index ON oauth_sessions(exp DESC);
43+
CREATE INDEX IF NOT EXISTS oauth_session_external_refresh_token_index ON oauth_sessions(app_id, external_refresh_token DESC);
44+
45+
CREATE TABLE IF NOT EXISTS oauth_m2m_tokens (
46+
app_id VARCHAR(64) DEFAULT 'public',
47+
client_id VARCHAR(255) NOT NULL,
48+
iat BIGINT NOT NULL,
49+
exp BIGINT NOT NULL,
50+
PRIMARY KEY (app_id, client_id, iat),
51+
FOREIGN KEY(app_id, client_id) REFERENCES oauth_clients(app_id, client_id) ON DELETE CASCADE
52+
);
53+
54+
CREATE INDEX IF NOT EXISTS oauth_m2m_token_iat_index ON oauth_m2m_tokens(iat DESC, app_id DESC);
55+
CREATE INDEX IF NOT EXISTS oauth_m2m_token_exp_index ON oauth_m2m_tokens(exp DESC);
56+
57+
CREATE TABLE IF NOT EXISTS oauth_logout_challenges (
58+
app_id VARCHAR(64) DEFAULT 'public',
59+
challenge VARCHAR(128) NOT NULL,
60+
client_id VARCHAR(255) NOT NULL,
61+
post_logout_redirect_uri VARCHAR(1024),
62+
session_handle VARCHAR(128),
63+
state VARCHAR(128),
64+
time_created BIGINT NOT NULL,
65+
PRIMARY KEY (app_id, challenge),
66+
FOREIGN KEY(app_id, client_id) REFERENCES oauth_clients(app_id, client_id) ON DELETE CASCADE
67+
);
68+
69+
CREATE INDEX IF NOT EXISTS oauth_logout_challenges_time_created_index ON oauth_logout_challenges(time_created DESC);
70+
```
71+
>>>>>>> origin/master
72+
1373
## [7.1.3] - 2024-09-04
1474

1575
- Adds index on `last_active_time` for `user_last_active` table to improve the performance of MAU computation.

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ plugins {
22
id 'java-library'
33
}
44

5-
6-
version = "7.1.3"
5+
version = "7.2.1"
76

87
repositories {
98
mavenCentral()

pluginInterfaceSupported.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"_comment": "contains a list of plugin interfaces branch names that this core supports",
33
"versions": [
4-
"6.2"
4+
"6.3"
55
]
66
}

0 commit comments

Comments
 (0)