Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
Set by moderator on 11 March 2018.
02:56 ilbot3 joined
moderator Cro: libraries and tools for building reactive services in Perl 6 | cro.services/ | Logs: irclog.perlgeek.de/cro/
06:43 FROGGS joined
Geth cro-core/new_regex: 3a33ab44a0 | Altai-man++ | lib/Cro/Uri.pm6
Use external regex for IPv6
13:11
cro-core/new_regex: 2f6c184fbb | Altai-man++ | lib/Cro/Uri.pm6
Fix tests
13:29
cro-core: Altai-man++ created pull request #5:
Make ipv6-related rule external
13:33
14:36 sena_kun joined
Geth cro-core: 3a33ab44a0 | Altai-man++ | lib/Cro/Uri.pm6
Use external regex for IPv6
14:51
cro-core: 2f6c184fbb | Altai-man++ | lib/Cro/Uri.pm6
Fix tests
cro-core: baeaa79e56 | (Jonathan Worthington)++ (committed using GitHub Web editor) | lib/Cro/Uri.pm6
Merge pull request #5 from croservices/new_regex

Make ipv6-related rule external
16:02 stmuk_ joined
Geth cro-http: b0153341d3 | Altai-man++ | 4 files
Use DateTime::Parse
16:25
cro-http: 75e8bc24dc | (Jonathan Worthington)++ | lib/Cro/HTTP/Router.pm6
Make some attributes of RouteSet public

To make it easier on those who might subclass it in order to write router plugins.
16:36
16:37 FROGGS joined
jnthn sena_kun: Trying to install latest I get: 16:46
===> Install [FAIL] for Cro::HTTP:ver<0.7.3>: Failed to open file /home/jnthn/dev/cro/cro-http/lib/Cro/HTTP/DateTime.pm6: No such file or directory
FROGGS there might be an untracked file somewhere :o) 19:13
jnthn: I've got a problem unterstanding something... right now the UserSession is provided to my route handler if the client sends the right cookie, correct? 19:33
what happens when the login is handled by micro service A, and I want to check for a valid login in service B? 19:34
in my Mojolicious code I look into my mysql session table for a valid session, provided by the cookie the client sends 19:35
then using that session I know which user it is about so I construct the user object
how would I do that using cro? 19:36
wait...
I have: route { before C::H::S::InMemory[UserSession].new; delegate <*> => route { ... } } 19:37
I probably dont want inMemory, but something that talks to my database... 19:38
okay, the docs state it clearly... thanks jnthn! 19:39
jnthn FROGGS: Two options. 1) Implement the persistent session role. 2) Use a JWT in a cookie and skip worrying about databases. :)
And yeah, both are doc'd. :)
FROGGS jnthn: is the doumentation under cro.services on github too? 19:56
because here: cro.services/docs/http-auth-and-sessions, "class MySession {" needs to be "class MySession does Cro::HTTP::Auth {" 19:57
jnthn Yes, it's in croservices/cro repo under the docs directory 20:00
Geth cro: FROGGS++ created pull request #60:
Add marker role Cro::HTTP::Auth to session class
20:02
20:31 FROGGS joined
Geth cro-http: 42f1e4da0a | Altai-man++ | META6.json
Remove file
21:22
cro: 86012aaa62 | (Tobias Leich)++ (committed using GitHub Web editor) | docs/http-auth-and-sessions.md
Add marker role Cro::HTTP::Auth to session class
cro: 346e1b24e0 | Altai-man++ (committed using GitHub Web editor) | docs/http-auth-and-sessions.md
Merge pull request #60 from FROGGS/patch-2

Add marker role Cro::HTTP::Auth to session class