How To Hidden my Bokeh Server embed URL From Flask ?

i want to hide my bokeh server embed URL.

anyone can show view page source and see the URL and can access it without authentication so I need to make it secure and don’t show the URL that published from bokeh server

how can i do that

i used bokeh embed

app.route(’/’, methods=[‘GET’])
def bkapp_page():

script = server_document(‘http://localhost:5006/bkapp’)

return render_template(“embed.html”, script=script, template=“Flask”)

``

html

Embedding a Bokeh Server With {{ framework }}
This Bokeh app below served by a Bokeh server that has been embedded in another web app framework. For more information see the section in the User's Guide.
{{ script|safe }}

``

You’ll need to run the bokeh server behind some kind of authenticating proxy, e.g Nginx is one possibility. There are still some open issues about various improvements that might be added to bokeh itself, e.g

https://github.com/bokeh/bokeh/issues/5876

If you have the ability to help and contribute that would be appreciated by many.

Thanks,

Bryan

···

On Jul 17, 2018, at 05:10, Mohamed Magdy [email protected] wrote:

i want to hide my bokeh server embed URL.

anyone can show view page source and see the URL and can access it without authentication so I need to make it secure and don’t show the URL that published from bokeh server

how can i do that

i used bokeh embed

app.route(‘/’, methods=[‘GET’])
def bkapp_page():

script = server_document(‘http://localhost:5006/bkapp’)

return render_template(“embed.html”, script=script, template=“Flask”)

``

html

Embedding a Bokeh Server With {{ framework }}
This Bokeh app below served by a Bokeh server that has been embedded in another web app framework. For more information see the section in the User's Guide.
{{ script|safe }}

``

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/30248b9e-5498-4a51-83a7-27040257a62f%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

<cp1.PNG>

Is there any way for authentication in bokeh server I see an old document for authentication users by switching from single user to multi user by using -m but in the new versions there is no parameters call -m or mult users or any document about

Is it work now or no ?

···

On Tue, Jul 17, 2018 at 4:25 PM Bryan Van de ven [email protected] wrote:

You’ll need to run the bokeh server behind some kind of authenticating proxy, e.g Nginx is one possibility. There are still some open issues about various improvements that might be added to bokeh itself, e.g

https://github.com/bokeh/bokeh/issues/5876

If you have the ability to help and contribute that would be appreciated by many.

Thanks,

Bryan

On Jul 17, 2018, at 05:10, Mohamed Magdy [email protected] wrote:

i want to hide my bokeh server embed URL.

anyone can show view page source and see the URL and can access it without authentication so I need to make it secure and don’t show the URL that published from bokeh server

how can i do that

i used bokeh embed

app.route(‘/’, methods=[‘GET’])
def bkapp_page():

script = server_document(‘http://localhost:5006/bkapp’)

return render_template(“embed.html”, script=script, template=“Flask”)

``

html

Embedding a Bokeh Server With {{ framework }}
This Bokeh app below served by a Bokeh server that has been embedded in another web app framework. For more information see the section in the User's Guide.
{{ script|safe }}

``

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/30248b9e-5498-4a51-83a7-27040257a62f%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

<cp1.PNG>

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/52A96939-0C05-4D4B-AEB6-7353EEAC9C14%40anaconda.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

That “-m” option refers to the old “bokeh-server”, which is long, long, long gone. The current generation Bokeh server is completely agnostic with respect to auth. There are simply too many options and possibilities, and we don’t have the resources or experience make them work. Instead of trying to re-inventing the wheel (badly and incompletely), that other tools already excel at, we made Bokeh flexible and integratable. As I stated earlier if you need auth, you will want to run behind a proxy that takes care of the auth.

Alternatively, you can work on (or wait for) the issue I linked to expose tornado’s “auth hook” in a reasonable way.

Thanks,

Bryan

···

On Jul 18, 2018, at 21:59, Mohamed Magdy [email protected] wrote:

Is there any way for authentication in bokeh server I see an old document for authentication users by switching from single user to multi user by using -m but in the new versions there is no parameters call -m or mult users or any document about

Is it work now or no ?

On Tue, Jul 17, 2018 at 4:25 PM Bryan Van de ven [email protected] wrote:

You’ll need to run the bokeh server behind some kind of authenticating proxy, e.g Nginx is one possibility. There are still some open issues about various improvements that might be added to bokeh itself, e.g

https://github.com/bokeh/bokeh/issues/5876

If you have the ability to help and contribute that would be appreciated by many.

Thanks,

Bryan

On Jul 17, 2018, at 05:10, Mohamed Magdy [email protected] wrote:

i want to hide my bokeh server embed URL.

anyone can show view page source and see the URL and can access it without authentication so I need to make it secure and don’t show the URL that published from bokeh server

how can i do that

i used bokeh embed

app.route(‘/’, methods=[‘GET’])
def bkapp_page():

script = server_document(‘http://localhost:5006/bkapp’)

return render_template(“embed.html”, script=script, template=“Flask”)

``

html

Embedding a Bokeh Server With {{ framework }}
This Bokeh app below served by a Bokeh server that has been embedded in another web app framework. For more information see the section in the User's Guide.
{{ script|safe }}

``

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/30248b9e-5498-4a51-83a7-27040257a62f%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

<cp1.PNG>

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/52A96939-0C05-4D4B-AEB6-7353EEAC9C14%40anaconda.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CAK8H%2BPr0yU%3Dp69xAHvS_EdR7yvENrUOkMnj8xRLxVpuCZpoCEw%40mail.gmail.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.