Skip to content
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: 2 additions & 0 deletions .github/workflows/_reusable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-versions: ["3.11", "3.12", "3.13"]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-forks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
basic-checks:
uses: ./.github/workflows/_reusable-ci.yml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
ci:
uses: ./.github/workflows/_reusable-ci.yml
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/full-ci-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ on:
issue_comment:
types: [created]

permissions:
contents: read

jobs:
trigger-check:
if: |
github.event.issue.pull_request &&
contains(github.event.comment.body, '/run-full-ci') &&
github.event.comment.author_association == 'OWNER'
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
pr_head_sha: ${{ steps.pr.outputs.pr_head_sha }}
pr_head_repo: ${{ steps.pr.outputs.pr_head_repo }}
Expand Down Expand Up @@ -42,6 +47,8 @@ jobs:
comment-result:
needs: [trigger-check, full-ci]
runs-on: ubuntu-latest
permissions:
pull-requests: write
# if the trigger-check job ran (i.e., the comment was valid)
if: needs.trigger-check.result != 'skipped'
steps:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/full-ci-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
get-pr-info:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
head_sha: ${{ steps.pr-info.outputs.head_sha }}
head_repo: ${{ steps.pr-info.outputs.head_repo }}
Expand Down Expand Up @@ -42,6 +47,8 @@ jobs:
needs: [get-pr-info, full-ci]
if: always()
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Comment on PR
uses: actions/github-script@v7
Expand Down
5 changes: 3 additions & 2 deletions custom_components/reflex_clerk_api/clerk_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import authlib.jose.errors as jose_errors
import clerk_backend_api
import reflex as rx
from authlib.jose import JWTClaims, jwt
from authlib.jose import JsonWebKey, JWTClaims, jwt
from reflex.event import EventCallback, EventType, IndividualEventType
from reflex.utils.exceptions import ImmutableStateError

Expand Down Expand Up @@ -127,9 +127,10 @@ async def set_clerk_session(self, token: str) -> EventType:
"""
logging.debug("Setting Clerk session")
jwks = await self._get_jwk_keys()
key_set = JsonWebKey.import_key_set({"keys": jwks})
try:
decoded: JWTClaims = jwt.decode(
token, {"keys": jwks}, claims_options=self._claims_options
token, key_set, claims_options=self._claims_options
)
except jose_errors.DecodeError as e:
# E.g. DecodeError -- Something went wrong just getting the JWT
Expand Down
2,297 changes: 1,349 additions & 948 deletions uv.lock

Large diffs are not rendered by default.

Loading