Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Pass authenticated session from Rails app to Motion? (Zan Thorn)
2. Re: Pass authenticated session from Rails app to Motion? (tosiara)
----------------------------------------------------------------------
Message: 1
Date: Tue, 12 Sep 2017 18:47:40 -0600
From: Zan Thorn <[email protected]>
To: Motion discussion list <[email protected]>
Subject: [Motion-user] Pass authenticated session from Rails app to
Motion?
Message-ID:
<caafdrzygsudr64rrtxfuikavb8iqd9aexebzlurpsclpttx...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Just wondering if this is possible, web stuff is not my expertise. I have a
ruby on rail web app that serves as a way into two motion streams and some
other information collected by a raspberry pi. I am running two motion
threads for two cameras and then pulling those into the rails site with
image_tag in the HAML files like so:
=image_tag "http://site.domain.com:3002", class: "webcam-img"
I have basic auth enabled on rails but both motion threads are wide open.
If I set stream_auth_method 2 that requires me to enter 3 sets of
credentials on every page load. Is there a better way to deal with this?
Can I somehow have rails pass motion the creds? So if you get into the
rails site, you could also get into each motion stream.
Any ideas? Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Wed, 13 Sep 2017 08:41:57 +0300
From: tosiara <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] Pass authenticated session from Rails app
to Motion?
Message-ID:
<CACHTdwT8mjJAFji1ak68P+iXjb1aVhNCXv=tal0uj8b3prq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
The only way that I can think about is:
=image_tag "http://user:[email protected]:3002
<http://site.domain.com:3002>", class: "webcam-img"
On Wed, Sep 13, 2017 at 3:47 AM, Zan Thorn <[email protected]> wrote:
> Just wondering if this is possible, web stuff is not my expertise. I have
> a ruby on rail web app that serves as a way into two motion streams and
> some other information collected by a raspberry pi. I am running two motion
> threads for two cameras and then pulling those into the rails site with
> image_tag in the HAML files like so:
>
> =image_tag "http://site.domain.com:3002", class: "webcam-img"
>
> I have basic auth enabled on rails but both motion threads are wide open.
> If I set stream_auth_method 2 that requires me to enter 3 sets of
> credentials on every page load. Is there a better way to deal with this?
> Can I somehow have rails pass motion the creds? So if you get into the
> rails site, you could also get into each motion stream.
>
> Any ideas? Thanks!
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 135, Issue 8
*******************************************