Skip to content

Commit

Permalink
[Bug] Deprecated stremalit api for Auth0 example (#300)
Browse files Browse the repository at this point in the history
* [Bug] remove deprecated `_get_websocket_headers`

* [Doc] Adding readme
  • Loading branch information
LatentDream authored Dec 18, 2024
1 parent ef6ec54 commit e9efb33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/streamlit/app-with-auth0/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import streamlit as st
from streamlit.web.server.websocket_headers import _get_websocket_headers

headers = _get_websocket_headers()
headers = st.context.headers


header_name = headers.get("X-Auth-Name")
Expand Down
13 changes: 13 additions & 0 deletions examples/streamlit/app-with-auth0/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Authentication

Our seamless integration with Auth0 enables you to add robust authentication to any Streamlit app effortlessly. There's no need to modify your existing Streamlit app code!

## User Information Retrieval

If you need to access user information returned by Auth0, this repository provides a practical example demonstrating how to do so.

## Learn More

For more information about authentication in Ploomber Cloud, including setup instructions, please refer to our official documentation:

[Ploomber Cloud - Streamlit Authentication Documentation](https://docs.cloud.ploomber.io/en/latest/apps/streamlit.html#authentication)

0 comments on commit e9efb33

Please sign in to comment.