From 08fe997fc9f1400c647a8e3c20be4309eebabeb7 Mon Sep 17 00:00:00 2001 From: Rishabh Poddar Date: Thu, 27 Aug 2020 02:18:52 +0530 Subject: [PATCH] If licenseKey is missing, then dependency jars are downloaded in DEV mode --- CHANGELOG.md | 1 + cli/jar/cli.jar | Bin 68253 -> 68253 bytes downloader/jar/downloader.jar | Bin 16652 -> 16644 bytes .../fileParsers/LicenseKeyParser.java | 2 +- jar/core-2.3.0.jar | Bin 159426 -> 159426 bytes 5 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f18e330d3..637325309 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Makes default refresh API path "/session/refresh" - Compatibility with CDI 2.2. Makes `cookie_domain` default value to not set, so that it will work with any API - Makes sameSite = lax by default +- If licenseKey is missing, then dependency jars are downloaded in DEV mode ## [2.2.3] - 2020-08-10 ### Changes diff --git a/cli/jar/cli.jar b/cli/jar/cli.jar index 69f1e01eb653868c6454bb503708bd27c5efa0e5..dbbf6d383d3d08100e5c365e7a41e4f283f06728 100644 GIT binary patch delta 1138 zcmZ8gT}YEr7~a|U?Z@e|2~KPz6(vcg>CB`gN0^#2U1^1;;ZIqbse!j)iQdc$U59xJ zb4An)x{-z`ffog(5(ZslBW6Mcf#Ah(`8T)qeb1SJeXu?6`@GNdp7(oqHsTaVoTA=V zCWtzPLaS9YB$yofR6&N^(o_k~E2Kv$e@TxZeOfv)1;tK-I~|5E$7G;dQXr$Jl-N}u z=6cO^ZbKXYpUtyh^V|r*%-$k63@Jaf2v$=o3%Fo0?`?I8v76Nie{Ik>mYG044-6$`f5iER+0v>_bZmAHn-WMI>k^5{v-~<=31#|tD+2mx;uMIl6JDi3wra|i?@A@B zTU02_)L(66^%|1MmQ^Iyv-+lr+pSY6e7)`OkMmjFvzff){W#4VWj7WV)<}(>N{x=l zji_xrp7}H+#`FEtH6`{~-2UoTk91x7jP$KP+0*iQNQWWh8?t><4oTi5+U7IRJRe_C zv2T%|m9}V4kf)bcbC7=X^WS&HALN_$ujKJ}4cy1h>DXEh)W6qot!UbM2J)J9ES9qM z)5yK+R^Z`{24F|TL`OHc=GR6GINN3waCEZ`Xbj!~+JiTMf#7vu?N&8#a*Nl~LzT#T zLcG2dx`4bO+ys0Pz6^|nZv#6b7lG3eoa;1`W;u60CO5$^g-q-KAt&U7)e^$H$n3&4 zo229{yQ?H6(9I}$7nUUu9LM?vQi_sSAXgCNiUbofmq;)&3y9<#N)}bLp<6|+g3+i6 zUXwMcNj;bk>ZmCB`gN0^#2U1^1;VOo}EYT#XjC3-V2bRFg? zObaOux{-z`ffog(5(ZslBW6Mcf#Ah(>E_(l_dRC@_QCeN@AE#-d*1Ke*^pBla*BFe zsUYeU3XMild)MgDrwB6Sl%z;-P9Z%?`Ad2P>C@DfAt<&RM$=&Ua#RMYA^9@8N{C$r zV!qo<=L4Gf|7@;(>gPrXX7?1rVMzX=L9mumZa`3+TLFn{xa@Q+v_Gp#QOT^%iv!W# zcm~8&qg4+gGGM0n!zya&fWTGW;n3~a{wB0a(|rRjk4;C3aX_>&!k3& z*)g@h*9wUA0O>#AT9?)S3`G#!Wl!KBtk+ygYG}psd zRODIWXQeLLcgfRBt2scwdHL_V>J9SEdRKG#yZRnr=X88M8|vTdxK=dPpN_oRkHu2v zKZV@ww*n6Zt^(U4COQ`2nqPq?aJG#~;MhhB&=|Y}vVgd`R%qNnwC|Oj|hNCKS1&lg| z;5Au845<6s^8_`~BcxGHtX@lw@Vb`NBUslG L{J)t+M{5591xR&( diff --git a/downloader/jar/downloader.jar b/downloader/jar/downloader.jar index 3e1b755edafc7b5a555d6a1905658e915c5e92a7..765ebee5ed64bb2fb1ab79d343af5cc23bee9592 100644 GIT binary patch delta 2061 zcmZWqdpy(o8~>VXwnfV#b7zyHxvpGhR+gB1(QQHNuORr;LzAhPaB9(F~ zxwR0*Ax+wGSvsc>%B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hRScWmW)3j40^hb`H%9a0<-o`=`h?gCfJ?Z2)2VvZB*cD zl<-s}Yw${^P$k>4!^Ph3W+kjFBK9#^fp@1VsR0(ORef}u`pX-sMPtT|k5ba+Iw_`F z<^z7cwT#P$U$3!z^AkPU{Sw7NIgs~m%~vnamHRY!JB0FSy2jGpy*W(oJKVL|B-Y+aRhvGFp0KY_>|>hqZS%?IJi zLXhc5)N<0|NRmy30@*H?OMhe%dmxSEax!6N=Mhbz!QA!nU_ul+rZCZXny0e%qC0}2 zM2kSBFtcj+!{ob`cbw5t-{^Rd58BnRxNc6KET(yMp3;2OSs>VbzlDDh*D5uI+ zCql!enV{)}bW#;w=C@J0+Hl1<#u*CQ@5uQRhx7=(q|h5rIrMc_L3yR~m3HEP2kjQ+ z2nQQ_uZ_S?`%Y`!ZL&O2KT&EzVd42d466pL>{pksLD&RU&SiJj8;{;8v!kzSkScN= zWgZl3d&IWZmDRY~Y1yy5eXx$-(ot({U~ZD1d#EnJqR0b%NO`cizCyOjf*UT^g%ar&{+wc3#8kk|A7BGNLQ3DV%^1yGf z?LeX#crQRCgr*@ylr|vvoLUg2{@hII18Pcgx^9kQP-XG2Q_8*e()-gy(O}Y%fIuw3 z>GbJU7+U~@Q{1qd_nmFc&)h58^F}nd@LTqfuwWTYns7jliUe!NQZdkKbue8G+CP+*yxZeK>M##d_u zWX?ih1c;gA{&jcPJcTzEVh~85NJafBfItdkHB!x;!7AL$F;IOXcuYP~=3iChi|Ft# Pvw6ps7_BQ diff --git a/downloader/src/main/java/io/supertokens/downloader/fileParsers/LicenseKeyParser.java b/downloader/src/main/java/io/supertokens/downloader/fileParsers/LicenseKeyParser.java index 321c925e2..f08711ed6 100644 --- a/downloader/src/main/java/io/supertokens/downloader/fileParsers/LicenseKeyParser.java +++ b/downloader/src/main/java/io/supertokens/downloader/fileParsers/LicenseKeyParser.java @@ -62,7 +62,7 @@ public LicenseKeyParser() { public String getMode() { if (this.mode == null) { - return "PRODUCTION"; + return "DEV"; } return this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