29 Oct 2021 |
ifs | Hey free65 ! Just ask your question, people might know the answer ;) | 17:24:52 |
ifs | This channel is not active though | 17:25:26 |
ifs | More clojurescripters are probably on the slack channel or something | 17:25:51 |
@free65:matrix.org | I'm trying to figure out the best way to implement authentication in Luminous using JWT token | 17:25:54 |
@free65:matrix.org | I got it working saiving JWT token in memory, I still have to implement the refresh_token part etc | 17:27:01 |
@free65:matrix.org | And I am curious to see if someone already did it | 17:27:19 |
ifs | Unfortunately I am of no help here | 17:28:26 |
@free65:matrix.org | thanks anyway :) | 17:28:57 |
ifs | free65: I'd suggest asking on the mailing list or #luminus https://luminusweb.com/contributea | 17:29:01 |
ifs | (I assume #luminus has moved to libera.chat from freenode) | 17:29:30 |
ifs | * free65: I'd suggest asking on the mailing list or #luminus https://luminusweb.com/contribute | 17:29:44 |
@free65:matrix.org | I saw that the mailing list isn't very popular | 17:30:26 |
ifs | I see | 17:30:41 |
@free65:matrix.org | are you an expert of re-frame by the way? | 17:30:55 |
ifs | Nope, I'm a noob on all things clojure :P | 17:32:10 |
ifs | Hanging out here, but unfortunately too busy on the main job so far to do anything with it | 17:32:58 |
@free65:matrix.org | to transform clojure in the main job is not easy | 17:33:51 |
ifs | 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 | 17:35:49 |
@free65:matrix.org | that sounds very intersting, anyway | 17:36:29 |
| oysmal joined the room. | 22:30:13 |
30 Oct 2021 |
| @littleli:matrix.org left the room. | 00:56:18 |
| @sudoreboot:matrix.org left the room. | 19:20:43 |
2 Nov 2021 |
Yeikoff | 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 |
Yeikoff | 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 | 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 | The access token is in-memory only, saved in a re-frame atom | 11:57:45 |
Yeikoff | yeah, seems similar. I guess the only thing I can add is: you can save the tokens on client's browser cache. | 12:02:17 |
Yeikoff | You could store both there and if token out of date, send refresh and get new token | 12:02:33 |
@free65:matrix.org | the refresh token can be saved in a cookie | 12:02:46 |
Yeikoff | but I am a statistician, not a developer, so I am learning as I go. | 12:02:54 |