Skip to content

Commit b63ed0d

Browse files
authored
feat: add security feature (#1026)
1 parent 0bfcf90 commit b63ed0d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## Unreleased
99

10-
## [9.1.2] -2024-07-24
10+
## [9.2.0] - 2024-08-20
11+
12+
- Adds `SECURITY` feature in `EE_FEATURES`.
13+
14+
## [9.1.2] - 2024-07-24
1115

1216
- Fixes path routing which rejected tenantId stop words even if it was not an exact stop word match. For example, `/hellotenant` is a valid tenantId prefix, however, it was being rejected for the stop word `hello`. - https://github.com/supertokens/supertokens-core/issues/1021
1317
- 500 errors in core returns actual exception, since these APIs are developer facing, it makes easier to debug these errors.
1418

15-
## [9.1.1] -2024-07-24
19+
## [9.1.1] - 2024-07-24
1620

1721
### Fixes
1822

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ compileTestJava { options.encoding = "UTF-8" }
1919
// }
2020
//}
2121

22-
version = "9.1.2"
22+
version = "9.2.0"
2323

2424

2525
repositories {

ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,10 @@ public JsonObject getPaidFeatureStats() throws StorageQueryException, TenantOrAp
391391
if (feature == EE_FEATURES.ACCOUNT_LINKING) {
392392
usageStats.add(EE_FEATURES.ACCOUNT_LINKING.toString(), getAccountLinkingStats());
393393
}
394+
395+
if (feature == EE_FEATURES.SECURITY) {
396+
usageStats.add(EE_FEATURES.SECURITY.toString(), new JsonObject());
397+
}
394398
}
395399

396400
usageStats.add("maus", getMAUs());

src/main/java/io/supertokens/featureflag/EE_FEATURES.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
public enum EE_FEATURES {
2020
ACCOUNT_LINKING("account_linking"), MULTI_TENANCY("multi_tenancy"), TEST("test"),
21-
DASHBOARD_LOGIN("dashboard_login"), MFA("mfa");
21+
DASHBOARD_LOGIN("dashboard_login"), MFA("mfa"), SECURITY("security");
2222

2323
private final String name;
2424

0 commit comments

Comments
 (0)