Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Deprecated stremalit api for Auth0 example #300

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading