Skip to content
Merged
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
9 changes: 9 additions & 0 deletions tests/flask_test/campus_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,15 @@ def _load_auth_headers(self) -> HttpHeader:
# Return empty headers for unauthenticated requests
return HttpHeader()

@property
def authorization(self) -> str | None:
"""The current Authorization header value, or None when unset.

Mirrors CampusRequest.authorization (sdk #119): peek the header
that would be sent, without changing client state.
"""
return self.headers.get("Authorization")

def reset_authorization(self) -> None:
"""Reset authorization back to client credentials from environment.

Expand Down
Loading