Hi,
I've been working with the plugin 'Directory' to serve files on a given
path. This works as expected and is pretty straight forward.
However, I would like to limit access to the ressource with Basic HTTP
Authentication dialog from the web browser. I can render text "OK" if
basic_auth meet
wow I just found this
http://blogs.perl.org/users/joel_berger/2013/01/a-quick-static-file-webserver.html
I'll give it a try but this looks promising !
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop recei
I realized maybe I didn't express my need : I want users to access the
files from the webpage a-la Apache. So the files and directories have to be
displayed.
On Thursday, 15 February 2018 13:53:37 UTC-5, Luc Larochelle wrote:
>
> Hi,
>
> I've been working with the plugi
Thank you Ilya. Well I want this to be part of something bigger. So if I can
achieve it within a web application it would be cleaner and easier to maintain.
I discarded check_auth since it could not do ldaps + certificate. I thought it
was an overkill method for my need and wanted to manage the
but still, why would the basic_auth always return a true value ? I thought
about this and used private browser session to make sure it would not happen.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop rece
Hey Brad, this does make a lot of sense.
I didn't get the idea of hooks I guess, but now I'll go have a second read.
Thank you so much for the explanations and for taking the time.
About ldap(s) well I've got a package of my own using Net::ldaps and I can use
certificates to bind with the ser
indeed. it works as expected. I just realized you wrote the basic auth plus
module :)
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mojolicious+unsubscr...@goo
If your offer is still on the table I think it would make things much easier to
handle from a plugin. Let me know if you decide to work on it ?
Luc
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receivin
Hey Brad this is looking good ! If you need me to share what I've done with
net::ldaps + certificates let me know.
Would be terrific if the session object was returned in some way so the that
the AD entries are accessible.
--
You received this message because you are subscribed to the Google G
2018 at 05:48:08PM -0800, Luc Larochelle wrote:
> > Hey Brad this is looking good ! If you need me to share what I've done
> with net::ldaps + certificates let me know.
> >
> > Would be terrific if the session object was returned in some way so the
Hey Brad, how are you ? Did my example help ?
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, se
Hi everyone,
I took the Yancy app example from the Mojolicious Advent calendar and made
some minor modifications to use an SQLite backend instead of Postgres.
Thing is, the page won't render at all , but there is no error message.
>From my understanding of the purpose of this plugin, it should
Is there a way, using the templates, to pass data from context to context ?
For instance, if I open a modal for CRUD operation where I want to populate
the content of a form for edit purpose, can I pass the whole hashref to
fill the form ? How would one do this ?
I've seen how to use javascript
I thought about this, maybe if I post/get on click and render a modal template
this could do the trick ...
I'm not exactly sure how to achieve this, I'll try and see and keep you posted.
If anyone has an idea ...
--
You received this message because you are subscribed to the Google Groups
"M
Still working on this, I can get on a route/:id but the object returned in
the stash is undef. The modal is part of the same template as the list,
though.
On Thursday, 1 March 2018 10:38:47 UTC-5, Luc Larochelle wrote:
>
> I thought about this, maybe if I post/get on click and re
Finally I found out an approach to this problem. Using the jquery api included
with bootstrap it gets easy to pass the minimum params and then use $.get or
$.post to work with my routes and render.
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group
I was wondering if content tags can be used without a template ? For instance,
I have a single page app built with Mojolicious::Lite and I would like to call
different routes (buttons pressed or link clicked) to refresh the table.
My problem is, I'm using the stash to pass the data structure to
Hi everyone,
I built a single page application to display content in a table with
Mojolicious Lite. This works fine, the first time the data is rendered.
I pass the values through the stash and in my template, I use a for loop to
go through the structure and display in the web page.
The proble
ugly details. If you refresh the page, you
> only need to have the route provide the subset of the data instead of the
> full set when it receives the search term.
>
> -Dan
>
> On Wed, Mar 21, 2018 at 11:43 AM, Luc Larochelle > wrote:
>
>> Hi everyone,
>>
Best regards,
Luc
On Wednesday, 21 March 2018 11:59:45 UTC-4, Dan Book wrote:
>
> Refreshing the page and refreshing the table are two different things. The
> latter you would need to do in javascript, ideally with a framework li
Hi everyone, thanks for taking the time to respond. I'm off for 5 weeks, but
I'll look into this and reply to this thread later in May.
Thanks for the suggestions / explanations.
Best,
Luc
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To un
I'm using Mojo::JWT to produde a token and verify authorization on routes
(using the given token, with the same secret)
Thing is , when the token is invalid, an error is being thrown and the
application crashes. I'd like to contain the error and deal with it.
What am I missing ? Here's the samp
ri May 18 15:48:37 2018] [debug] Your secret passphrase needs to be
changed
[Fri May 18 15:48:37 2018] [debug] 500 Internal Server Error (0.064189s,
15.579/s)
On Friday, 18 May 2018 15:57:11 UTC-4, Luc Larochelle wrote:
>
> I'm using Mojo::JWT to produde a token and verify autho
and
> trap the exception.
>
> Scott
>
> On Friday, May 18, 2018 at 1:57:11 PM UTC-6, Luc Larochelle wrote:
>>
>> I'm using Mojo::JWT to produde a token and verify authorization on routes
>> (using the given token, with the same secret)
>>
>> Thin
Hi Scott,
Sorry about this. I reviewed the doc on "eval" and it's working now.
eval {my $status = $jwt->decode($token);};
return 0 if $@;
return $status;
On Wednesday, 23 May 2018 13:23:54 UTC-4, Luc Larochelle wrote:
>
> Hi Scott,
>
> I tri
Hi, what's the proper way to render a status code and a json message at the
same time ?
I use Mojolicious Lite.
Best,
Luc
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an
well that's interesting for sure , but actually I'm using Mojolicious::Lite
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mojolicious+unsubscr...@googlegroups.c
What I mean is, how can I pass both types to the renderer ?
$c->render(status => 404, json => {message => 'error'});
Is that the proper way ?
On Tuesday, 28 August 2018 09:29:03 UTC-4, Luc Larochelle wrote:
>
> well that's interesting for sure , but act
thank u so much for the confirmation. Btw I tried to replicate as per your
example in the meanwhile and it works perfectly for me.
Best,
Luc
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving email
Hi,
I'm using the excellent " basic auth plus " plugin to authenticate against
an LDAP server.
It is being called from the hook "before_routes".
Question : is it possible to insert a value into the stash from this hook ?
I tried with $self->stash(user => $username) but it's not recognized b
hey Brad nice to hear from you again !
I think I'll have a look @ under , but in the meanwhile I realized that the
difference between our code ia that I assign the value to the stash inside the
if condition. Maybe it is not met after all ? I'll do more testing :)
In fact I need to protect acce
Hi Duncan,
I just finished my first AngularJS web app with Mojolicious as the backend.
The result is impressive, slick and highly responsive. I had looked into
the openAPI plugin before, but wouldn't really understand what it is and
how to use it before doing my dev. In fact, I implemented json
Hi Everyone,
Given that application X is owned by it's generic user (userX) and that a
Webapp is owned by another generic user(Y), what's the best way to share
permissions between the users so that application X can be called by a a
request to the WebApp ?
Also, is it a good thing to separate
onfig, but this got complicated ...
Luc
On Wednesday, 7 November 2018 22:20:02 UTC-5, Stefan Adams wrote:
>
>
>
> On Wed, Nov 7, 2018 at 1:18 PM Luc Larochelle > wrote:
>
>> Hi Everyone,
>>
>> Given that application X is owned by it's generic user (userX
Hello everyone,
While a 'select' statement can be double checked by the presence of the
returned data, how can I confirm that statements such as 'insert' ,
'update' or 'delete' are successful ?
For instance, using SQL::Abstract and some helpers
helper insertOne => sub {
my ($c,$table) = @_;
$c
.
>
> Short of that, I'm fairly certain it'll crash your thread if it fails.
>
> On Fri, Mar 15, 2019, 10:22 PM Luc Larochelle > wrote:
>
>> Hello everyone,
>>
>> While a 'select' statement can be double checked by the presence of the
>&g
e eval or Try::Tiny
> <https://metacpan.org/pod/Try::Tiny> to catch them. "
>
> This is the standard way to handle errors in Perl. Syntax::Keyword::Try is
> also a nicer interface if you can use keyword plugins (perl 5.14+).
>
> -Dan
>
> On Mon, Mar 18, 2019 at 10
Hello everyone,
I've been thinking a lot about this lately. In a very simple and light
application, the database is an XML file , around 1000 entries and very low
IO.
I haven't been orienting my work on XML, but I was wondering if it would be
easier to CRUD on the XML directly instead of creat
well after posting I found this where Dan Book talks about it a little bit
: https://groups.google.com/forum/#!topic/mojolicious/sRAk6YhrvK0
On Friday, 22 March 2019 11:16:52 UTC-4, Luc Larochelle wrote:
>
> Hello everyone,
>
> I've been thinking a lot about this lately. In
, 22 March 2019 11:42:56 UTC-4, Stefan Adams wrote:
>
>
>
> On Fri, Mar 22, 2019 at 10:16 AM Luc Larochelle > wrote:
>
>> I've been thinking a lot about this lately. In a very simple and light
>> application, the database is an XML file , around 1000 entries and ve
Hi there, I'm not so sure this is the right forum to discuss these matters,
but I'm curious and I know there are some fine folks around here who might
have various interests so here we go :)
I'd like to build an event driven API based engine to work with, but not
exclusively, syslog messages as
Hello Heiko, this seems absolutely right after reading a bit about it.
Since I've never used Unix sockets nor Mojo::IOLoop, I'd like to double
check my comprehension with you :)
So rsyslogd sends output to a Unix Socket (in occurence, a file ?) and
Mojo::IOLoop::Client reads its content in rea
I'm thinking about building the same type of system. To be very honest, I
thought about websockets but wouldn't know where to start.
In a homemade config backup system, I decided to migrate the configuration
file to a nice CRUD frontend built with Mojolicious + AngularJS +
Bootstrap. As a nice-
Hello everyone,
I've been struggling with this one for a while, so I decided to post here.
I built a crud web application to manage hosts configuration for a backend
backup application.
There is a parent table (Devices) , which relates to child tables by name
(authName , promptName ...). I def
apps in the same
> process, because it will make one $sqlite per whole process.
>
> -Dan
>
> On Wed, May 8, 2019 at 10:47 AM Luc Larochelle > wrote:
>
>> Hello everyone,
>>
>> I've been struggling with this one for a while, so I decided to post here.
>&
straint failed/) {
$c->render(status => 400, json => {message => $c->param('id') .
$messages->{'FK'}});
}
} else {
$c->render(status => 404, json => {message => "Not found"});
}
};
On Wednesday, 20 March 2019 11:58:04 UTC-4, Luc L
log errors and rethrow any exceptions you do not handle.
> You will want to see the error logging later.
>
> -Dan
>
> On Wed, May 8, 2019 at 1:18 PM Luc Larochelle > wrote:
>
>> This works just as expected. In my case I wanted to catch foreign key
>> constraints. Now
;
> -Dan
>
> On Thu, May 9, 2019 at 9:49 AM Luc Larochelle > wrote:
>
>> Hi Dan,
>>
>> What does the " 1 " stands for in the line : if (eval { ...; *1* }) { ?
>>
>> I've never used that kind of notation before. I think it could be some
&g
Hi,
I've researched this subject and read a lot, but can't come to a
conclusion. I need help to get things straight ...
In my web app, I simply manage elements in a DB with API endpoints. So far,
this is awesome. My setup is Mojolicious + AngularJS + Bootstrap.
The way I see this, my question
It was implied that the status update would/could be async.
Luc
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to mojolicious+unsubscr...@googlegroups.com.
To pos
ket broker can also act as a pubsub
> daemon.
>
> -Dan
>
> On Thu, May 9, 2019 at 4:17 PM Luc Larochelle > wrote:
>
>> Hi,
>>
>> I've researched this subject and read a lot, but can't come to a
>> conclusion. I need help to get things straigh
I need to restart this debate :)
I've been looking into this and found the Multiplex plugin for Mojolicious
by Joel Berger. Seems interesting too, but I still need to understand the
mechanics of websockets and non-blocking IO and minion jobs ... That's a
lot
So I thought of something else ...
Well thanks for taking the time to reply, I'll have a look into it. You
wrote a long time ago, I was totally absorbed in a project.
Best regards,
Luc
On Thursday, 30 May 2019 14:33:13 UTC-4, Heiko Jansen wrote:
>
> Sorry, completely missed your follow-up...
>
> I'd say the synopsis of Mojo::IOLo
53 matches
Mail list logo