From 012a7f8d89227015c9b3be97510924adca628dc8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 9 Feb 2022 19:47:13 -0600 Subject: [PATCH 1/4] Mitra: support Ethereum login --- app/soapbox/actions/auth.js | Bin 9257 -> 10230 bytes .../auth_login/components/login_form.js | Bin 3019 -> 2833 bytes .../auth_login/components/login_page.js | Bin 2344 -> 2922 bytes app/soapbox/utils/features.js | Bin 4411 -> 4485 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index 5274a98cf45be178b5fc3e2b3c710b29141e3125..dde684f77b46a59613c583f81e3cd90911eb9a89 100644 GIT binary patch delta 689 zcma))&r0M#5XO-Okx@j4#lI*8D`p19h}RJX(SrwdE(;5*Luit6j5E_6yE_CK!uSsT z0G_=G-hBn1z=MzA#ghlClWd&1ZC{d9eO2}QD*bT$(R%!|HjDZSCC2>|(Fu9Y?9A_M z4d7o8QrLqeAa4}+{RK@Bsi z^D#-=l8@IEBmn=x5}{Orv!18I4kud?ldP|ra6an2QB2qj=k($anq%Io>r?p^q7R#VU0U35neWrz^t9+AuhUJjNcN=V Pduk?@H=q8ly-a=qHIv*o delta 12 Tcmez7ztUqvxa?*X#Y=1eCdLIT diff --git a/app/soapbox/features/auth_login/components/login_form.js b/app/soapbox/features/auth_login/components/login_form.js index 62b80f0af67ef0e58f589a19c7e59b69bee2648f..549ebb338f7a72ac825001905ac64bd9a61122f4 100644 GIT binary patch delta 81 zcmX>tK2dDL38u-Pm<;68QWHx`i&BfN6w*^m+@Ktd%)H`~#JuEG&B+1Gn>k==HjA;S UvrOK}VZa3w(JR{gmg6210Q@)}#Q*>R delta 163 zcmbOzc3OPH2__*0h2;Fa;u3|l)Wnj~qSRsq+sTZ~Vv~gTENKF=J-Ykqo%jQeW>MYFF`dX70vWW8*K+RGpElw?(oWmhC`6i3# aYZJUK}K diff --git a/app/soapbox/features/auth_login/components/login_page.js b/app/soapbox/features/auth_login/components/login_page.js index ca16c2a81bca74f5c5d1f51b8dfc68d7211a06da..d6de2ca3d7ec1cc6ad13108fdc0bac840d495306 100644 GIT binary patch delta 557 zcmZvZ%}T>S6opBpw4~_5g)X|eBGMVGao?sz@Mq;h=o7^Bwi!%kN;1(!3EdYLN?t;6 zC4B>*z_%#)6y8aj(1M#Vnfr6TbLQjl_vmf4k2=5zlgYgr3z;2Q{C%}(j8WgAr;`Zd zEVYj7qv8jx&xe@};42wx5cKh+kI(};Xmn_fwTjyo@7mNFA?=Z1rT`|`*>0U+i?=g( zubEv{PR>n3q11sb23D-(ZQ7D{?R4o^E~@julfw{iw;d1);q*6hYs?u8MLhMiA3#cV z9f;VOMrs=8d{9=|P8N*w92vkN0m&FQd-LHK^?>|l-_@pDHu*+?8ATPMgHfcSbpQZJ za`=o=-{8ngLd~dPd}Ob+GrL`SUVhb1t+^NhD^hTFi1@};nW_7jXsskDc^wM>sW;2% q{z)b6)AQ1E!HduV6oI*y>-oN+As)am#%eB-{nQ5yx-yuyo!Wn2qP2zq delta 80 zcmV-W0I&b*7N`=C=aU@)ij&;|pBgB83LqeDWjY{pbYXO5E@x$QC?{=YCn+onlg|Pc mlji~<0(~j7GXpIJlR60@lPLuqvw{f*0h165PX&Dn3VjMp`WN&7 diff --git a/app/soapbox/utils/features.js b/app/soapbox/utils/features.js index e55ca455c662acf03bf69404f17bc1c4de98ea44..2df8e1c7a8f350677d1a8f7f66213dc2aa888a61 100644 GIT binary patch delta 85 zcmdn3)T+Fpfl)TKq9DJhL?Jmpuee0P*E1x@Q2_{S71Vt*ONutvFz(=0RZvJR$w)0q jEzR}GPtVM=QYh0a&QB{TPb^ARu(h>?=-O<+&&>n?(A^t| delta 17 YcmZow-mSEufpPOf#x1;?>-gE306u>P761SM From f051b70b102cf8d141c7ea3e9dbd056c17a4f073 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Feb 2022 16:33:28 -0600 Subject: [PATCH 2/4] Support Ethereum external login --- app/soapbox/actions/auth.js | Bin 10230 -> 10542 bytes app/soapbox/actions/external_auth.js | Bin 2947 -> 3815 bytes .../auth_login/components/login_page.js | Bin 2922 -> 2344 bytes .../components/external_login_form.js | Bin 2423 -> 2409 bytes app/soapbox/utils/quirks.js | Bin 373 -> 538 bytes 5 files changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index dde684f77b46a59613c583f81e3cd90911eb9a89..65c1dc0f59d562619269d3f94be96effe33b3551 100644 GIT binary patch delta 388 zcmez7zbI$WWJhLk)ek)qC_i&;_S=Qq$Dps&nfSaWOWCfQbmZWNE>H(P=>X|@wiFwJX z>YAF?V4az13K|f7dLZMA9SaJa!8YXQX(|+@mXuD;RDf8xZ<~yvD8+h3!@8Xr%{EO2}WU`~2HdtVdoZ{r)a{QBBRE4E8^NLFn z^O955brjTd^3yZ(;&W4rixbmR)nhlS$=_m}Tq-O*nMbjG@=+d1W(5U>$!mn=*sQsL oEQQJUxx^-~kQA5FOH57%YKkw(&rZ$L)P%@_RMc+PSNhKe08wHt`2YX_ diff --git a/app/soapbox/actions/external_auth.js b/app/soapbox/actions/external_auth.js index b3258ab7054fe1e9433341cdfbd37e7773989a2d..35af6699ecf6e924c993aca83bd2edbc32ff45ba 100644 GIT binary patch delta 730 zcmaix&q@MO6vnZf8NEf81cs3wTA0=(6cLnGxUfxz6}1eSrmGI>%s79<5^>QZoCoL$ zg2X528G3uW7M)EyoksF9-@HH#@FE6G@Qym_Uf zs%QpOAxn*8Q_}J}zB+tNsr_u`$6g$K#*{@vQe+S{Di}0bF{maBg@mexC0REFS)@E% z3OYSINnzQ!hU-iO&lw+Y}1j9rsB9W9yEq*fH<7nLZamF6XvWaj57Bp0P7mZUls6gcLk1f`~A z7NsVaOuo-~aPn&w&B;Qnl9M%A^(T9<^G!}+HJLn(RYycYp*T6eAhlSBO92dOt+}`+ zH*$+je#R<2`52q%WJMm)$?w=?Cv&pvO*Um06;eS6opBpw4~_5g)X|eBGMVGao?sz@Mq;h=o7^Bwi!%kN;1(!3EdYLN?t;6 zC4B>*z_%#)6y8aj(1M#Vnfr6TbLQjl_vmf4k2=5zlgYgr3z;2Q{C%}(j8WgAr;`Zd zEVYj7qv8jx&xe@};42wx5cKh+kI(};Xmn_fwTjyo@7mNFA?=Z1rT`|`*>0U+i?=g( zubEv{PR>n3q11sb23D-(ZQ7D{?R4o^E~@julfw{iw;d1);q*6hYs?u8MLhMiA3#cV z9f;VOMrs=8d{9=|P8N*w92vkN0m&FQd-LHK^?>|l-_@pDHu*+?8ATPMgHfcSbpQZJ za`=o=-{8ngLd~dPd}Ob+GrL`SUVhb1t+^NhD^hTFi1@};nW_7jXsskDc^wM>sW;2% q{z)b6)AQ1E!HduV6oI*y>-oN+As)am#%eB-{nQ5yx-yuyo!Wn2qP2zq diff --git a/app/soapbox/features/external_login/components/external_login_form.js b/app/soapbox/features/external_login/components/external_login_form.js index c5da61efb3651c5772227af0f093fd63f9671ae0..83a9ccf87a8c0b97a4bffce3ec333b258dd2292f 100644 GIT binary patch delta 43 ncmew^^ipWT9p2Q6lGLKS#2lae^vt}CAGDZJMKkb(iGq)hWs6?S!A-O0uu_QG(H77N>B)>?ZRw1n@KUYD$D76?Yq;Ac{H9=HB zMpJu{sJGWtu>) zLiNP0#`Q2mfJzkPb(=;ECL!}YYVYS2dp-=BqOyb twKUf!KRq+gKQE^ex8hoBu3Al?t5Yk$K1|LBx=A5DwZt#AVlqEt8UPF$Q9=L! delta 86 zcmbQm@|8(6Gq)hWs6?S!p&+rSI5jM_s5mn}Z(?AAWM*D*Nn&1ds)DVZLN%9yLUKM( nK%q>*cH((8M(fE;jK+fM0XeBf`MHVeIzahaYp&YK^B8LYAYUA5 From 01dd53328beff3ff44c8c269ab8d8aa41e08acf4 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Feb 2022 16:36:36 -0600 Subject: [PATCH 3/4] Cleanup unused code --- app/soapbox/actions/auth.js | Bin 10542 -> 10339 bytes app/soapbox/utils/quirks.js | Bin 538 -> 494 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index 65c1dc0f59d562619269d3f94be96effe33b3551..5da8d579ee0fb52d32d600e91bc93a88385c857b 100644 GIT binary patch delta 25 hcmZ1%^f+LHDf8xZ<~yvD8+h3!@8Xr%{EO2>9sr5a3A+FQ delta 138 zcmaDHur6qWDKlq!YDr*eW>I$WWJhLk)ek)qC_i&;_S=Qq$Dps&nfSaW;d8e$b97siGnt}#IUJqnUv137j RGuWj3$w~b7oAo(O;y3Y delta 32 ncmaFIJd0(66C-zVc4k4bV?lv)QR-xQMllv&&yb+W){L70wciSU From abcd55752da73fe8cd3d3f9d18cad23dee973fb6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 10 Feb 2022 19:34:23 -0600 Subject: [PATCH 4/4] Support only external Ethereum auth for now --- app/soapbox/actions/auth.js | Bin 10339 -> 9257 bytes app/soapbox/actions/external_auth.js | Bin 3815 -> 4684 bytes app/soapbox/reducers/instance.js | Bin 6164 -> 6178 bytes app/soapbox/utils/ethereum.js | Bin 0 -> 887 bytes app/soapbox/utils/quirks.js | Bin 494 -> 522 bytes 5 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 app/soapbox/utils/ethereum.js diff --git a/app/soapbox/actions/auth.js b/app/soapbox/actions/auth.js index 5da8d579ee0fb52d32d600e91bc93a88385c857b..5274a98cf45be178b5fc3e2b3c710b29141e3125 100644 GIT binary patch delta 12 TcmaDHu+n2gxa{VMikH{`C!qy~ delta 837 zcma)4(Q4E{6vdY+E6D0gsam~7XcD@nh;Lgf6n*evYo%4BEhUV}HI2JFlg^zGWV_UV zn4i!$!O!ra-ynX6;7zg_(>L=n;odXno^$Sed-eOx_xGz0(VU{jVmeZ3CjCs35i-UB zd=P~1_DA-~?Ty2>3ftfiaDEOcngb&Y`a#IQzSrWsAlT~lfWKHVA?4ic90?GI@nDRuG48h|wT9kL< zSQXNc2lF6g+tM$^WO9LKCrLCjBf<7_nAO5tQO6a;Axv@-2w?;ZyTkZK`KWIpHEc&>Nq4HjN1M58+r zjo0DTA)!$tRib{uTla(RwOkODN^_KMe7CJJv3L77?Uy@`Y8@1-NwOZyg^Wd?9cwwbq5D%cF&JQ#4)cuGHQ&HQ|4Ih*R}g=-ExPEA6=Crz}#M2S^sgg Hdb#u$^HmG3 diff --git a/app/soapbox/actions/external_auth.js b/app/soapbox/actions/external_auth.js index 35af6699ecf6e924c993aca83bd2edbc32ff45ba..c6fc5d3405f8b7b7d0e8bf9c379f805720c279eb 100644 GIT binary patch delta 670 zcmZWmF^dyH7$rG9@3Q8UYvc;yI~1}DVIx<`gcF09%Alu(V6%+7U-pJeW|o;*7Kt&H ztq9Xu=|2$mHz{8<$v(oz1*4LbTjYG``&xs@9W=geq1!%o5tt%Q$CrX9mwQ~ zNTqw*ytak*7&Ye8@_zGuQ}lW;5>|5t=0s!=YvfkQ6o>>ox5vPppBUw|jAKQ6)?@mo~C5GGx#>YpK(%$rTPu!H6e`CSz=Q53PEj3e@*F zWe!&P@kAg=iiA})hUeG+I13vYr0(q+@$_kxoN;3crAhBR(<-bn5gKC~#$f|E-) zy(YVI2{5KkF6ES;d_%Bgax|ypW>;Q2Mj;gK{&_i-nv);$DFbyVOjh9M+I)wvfEfU6 Ch$c$_ diff --git a/app/soapbox/reducers/instance.js b/app/soapbox/reducers/instance.js index 25a04562e95ebee4eeb10ebf3b3424d354fa65b5..b0dd8594f1820f2ac6a99c77c804a86197c46f81 100644 GIT binary patch delta 27 jcmbPYu*hIT5!>W$A>qlNS@btAXRBaj)Z8r3@s%F{kaY>1 delta 17 ZcmZ2vFvVa)5!>c^wzZ6#bveHB0{}i#29W>& diff --git a/app/soapbox/utils/ethereum.js b/app/soapbox/utils/ethereum.js new file mode 100644 index 0000000000000000000000000000000000000000..3bd8db7b18e56e141abb01aebe112494bf18a720 GIT binary patch literal 887 zcma))L2JT55QXplin*CUh&@{@*wSO6w1*x<%qAIQ+GN-6Y?^}j-#eR4wowthC~W4< z%=g~l?_OyGnUZ7x%?>p-H7ps3MUrR!}q!FboWzp51HxYTRkq81Z znrp)NblC#UhnqIg9VP%8?G#TQgt2ye1_!8_LFIFp^8coPUS^qUq@gJsLzV-?ytWJ+ z2X&rxLuhrkX7Hn9U(y$i`M@ZkvXBf{^U9(?w%Y8xFY!$V*bai%$7{&8;HB@+&~C|S z7}+I!vj=9XZB*;;RO92S-^8Fo4OETQ@ Li*hFiGtLG89^(>t delta 29 kcmeBTdB?oLiBT}MBqOybwKUf!KRq+gKQE_paz5j10HJIP8~^|S