Skip to content

Commit

Permalink
rt-branding
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinkr0411 committed Aug 19, 2024
1 parent f0eb7a3 commit 207d78f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ RUN pip3 install uv && \
COPY --chown=$UID:$GID --from=build /app/build /app/build
COPY --chown=$UID:$GID --from=build /app/CHANGELOG.md /app/CHANGELOG.md
COPY --chown=$UID:$GID --from=build /app/package.json /app/package.json
COPY --chown=$UID:$GID ./rt-static /app/rt-static

# copy backend files
COPY --chown=$UID:$GID ./backend .
Expand Down
2 changes: 1 addition & 1 deletion backend/apps/webui/routers/auths.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def signin(request: Request, response: Response, form_data: SigninForm):
trusted_email = decode_token_from_alb(jwt)["email"]
trusted_email = trusted_email.lower()
trusted_name = trusted_email

if WEBUI_AUTH_TRUSTED_NAME_HEADER:
trusted_name = request.headers.get(
WEBUI_AUTH_TRUSTED_NAME_HEADER, trusted_email
Expand Down
2 changes: 1 addition & 1 deletion backend/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def decode_token(token: str) -> Optional[dict]:
except Exception:
return None


def decode_token_from_alb(token: str) -> Optional[dict]:
try:
payload = jwt.decode(token, options={"verify_signature": False})
Expand Down
Binary file added rt-static/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rt-static/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 207d78f

Please sign in to comment.