!LOwFQWBsILWVcszfWb:matrix.org

ClojureScript

197 Members
ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.9.22923 Servers

Load older messages


SenderMessageTime
29 Oct 2021
@ifs:matrix.orgifs Hey free65 ! Just ask your question, people might know the answer ;) 17:24:52
@ifs:matrix.orgifsThis channel is not active though17:25:26
@ifs:matrix.orgifsMore clojurescripters are probably on the slack channel or something17:25:51
@free65:matrix.org@free65:matrix.orgI'm trying to figure out the best way to implement authentication in Luminous using JWT token17:25:54
@free65:matrix.org@free65:matrix.orgI got it working saiving JWT token in memory, I still have to implement the refresh_token part etc17:27:01
@free65:matrix.org@free65:matrix.orgAnd I am curious to see if someone already did it17:27:19
@ifs:matrix.orgifsUnfortunately I am of no help here17:28:26
@free65:matrix.org@free65:matrix.orgthanks anyway :)17:28:57
@ifs:matrix.orgifs free65: I'd suggest asking on the mailing list or #luminus https://luminusweb.com/contributea 17:29:01
@ifs:matrix.orgifs(I assume #luminus has moved to libera.chat from freenode)17:29:30
@ifs:matrix.orgifs * free65: I'd suggest asking on the mailing list or #luminus https://luminusweb.com/contribute 17:29:44
@free65:matrix.org@free65:matrix.orgI saw that the mailing list isn't very popular17:30:26
@ifs:matrix.orgifsI see17:30:41
@free65:matrix.org@free65:matrix.orgare you an expert of re-frame by the way?17:30:55
@ifs:matrix.orgifsNope, I'm a noob on all things clojure :P17:32:10
@ifs:matrix.orgifsHanging out here, but unfortunately too busy on the main job so far to do anything with it17:32:58
@free65:matrix.org@free65:matrix.orgto transform clojure in the main job is not easy17:33:51
@ifs:matrix.orgifsIf you're a full stack developer, I'd say it's not that hard either, but I work as a computational linguist , and so far it's either some text analytics with python libs or writing rules in formal languages17:35:49
@free65:matrix.org@free65:matrix.orgthat sounds very intersting, anyway17:36:29
@oysmal:matrix.orgoysmal joined the room.22:30:13
30 Oct 2021
@littleli:matrix.org@littleli:matrix.org left the room.00:56:18
@sudoreboot:matrix.org@sudoreboot:matrix.org left the room.19:20:43
2 Nov 2021
@yeik-the-spik:matrix.orgYeikoff
In reply to @free65:matrix.org
I'm trying to figure out the best way to implement authentication in Luminous using JWT token
I am on a similar boat. I just followed buddy's and luminus' documentation to get a half working implementation. no refresh_token yet. I would really appreciate if you were to report back any progress. Your implementation might be at a further step than mine (specially the clojurescript bit), but I am happy to share my code if you think it might be of any help.
11:40:47
@yeik-the-spik:matrix.orgYeikoff
In reply to @ifs:matrix.org
If you're a full stack developer, I'd say it's not that hard either, but I work as a computational linguist , and so far it's either some text analytics with python libs or writing rules in formal languages
Cool! I am a statistician and did my fair share of NLP some years back. I did it in R, which is lispier... somewhat :D
11:48:30
@free65:matrix.org@free65:matrix.org
In reply to @yeik-the-spik:matrix.org
I am on a similar boat. I just followed buddy's and luminus' documentation to get a half working implementation. no refresh_token yet. I would really appreciate if you were to report back any progress. Your implementation might be at a further step than mine (specially the clojurescript bit), but I am happy to share my code if you think it might be of any help.
I think we are at the same point. I have token working, but no refresh token, yet. I'm thinking about the best strategy to implement it and what to save in the token. I'm thinking about creating a refresh token with no information saved in it and to save in database the refresh token connected to the user. When access token expires the application loads from db the username and the role, in order to create the new access token.
11:56:12
@free65:matrix.org@free65:matrix.orgThe access token is in-memory only, saved in a re-frame atom11:57:45
@yeik-the-spik:matrix.orgYeikoffyeah, seems similar. I guess the only thing I can add is: you can save the tokens on client's browser cache.12:02:17
@yeik-the-spik:matrix.orgYeikoffYou could store both there and if token out of date, send refresh and get new token12:02:33
@free65:matrix.org@free65:matrix.orgthe refresh token can be saved in a cookie12:02:46
@yeik-the-spik:matrix.orgYeikoffbut I am a statistician, not a developer, so I am learning as I go. 12:02:54

Show newer messages


Back to Room ListRoom Version: