Skip to content

Commit cf959c6

Browse files
feat: live audience as default (#28)
1 parent 13c59d8 commit cf959c6

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def main():
2828
client_id="your-oauth-client-id",
2929
client_secret="your-oauth-client-secret",
3030
auth_url="https://crispthinking.auth0.com/oauth/token", # Optional, this is default
31-
audience="crisp-athena-dev" # Optional, this is default
31+
audience="crisp-athena-live" # Optional, this is default
3232
)
3333

3434
# Create channel with automatic OAuth handling

docs/authentication.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The OAuth credential helper is the recommended authentication method for product
2929
client_id="your-oauth-client-id",
3030
client_secret="your-oauth-client-secret",
3131
auth_url="https://crispthinking.auth0.com/oauth/token", # Optional
32-
audience="crisp-athena-dev" # Optional
32+
audience="crisp-athena-live" # Optional
3333
)
3434
3535
# Create authenticated channel
@@ -51,7 +51,7 @@ Set these environment variables for OAuth authentication:
5151
5252
# Optional (defaults shown)
5353
export OAUTH_AUTH_URL="https://crispthinking.auth0.com/oauth/token"
54-
export OAUTH_AUDIENCE="crisp-athena-dev"
54+
export OAUTH_AUDIENCE="crisp-athena-live"
5555
5656
**Complete Example:**
5757

@@ -73,7 +73,7 @@ Set these environment variables for OAuth authentication:
7373
client_id=os.getenv("OAUTH_CLIENT_ID"),
7474
client_secret=os.getenv("OAUTH_CLIENT_SECRET"),
7575
auth_url=os.getenv("OAUTH_AUTH_URL", "https://crispthinking.auth0.com/oauth/token"),
76-
audience=os.getenv("OAUTH_AUDIENCE", "crisp-athena-dev"),
76+
audience=os.getenv("OAUTH_AUDIENCE", "crisp-athena-live"),
7777
)
7878
7979
# Test token acquisition
@@ -166,7 +166,7 @@ Default Endpoints
166166
The credential helper uses these default OAuth endpoints:
167167

168168
* **Auth URL**: ``https://crispthinking.auth0.com/oauth/token``
169-
* **Audience**: ``crisp-athena-dev``
169+
* **Audience**: ``crisp-athena-live``
170170

171171
These can be overridden when creating the ``CredentialHelper``.
172172

docs/examples.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This example shows:
4747
auth_url = os.getenv(
4848
"OAUTH_AUTH_URL", "https://crispthinking.auth0.com/oauth/token"
4949
)
50-
audience = os.getenv("OAUTH_AUDIENCE", "crisp-athena-dev")
50+
audience = os.getenv("OAUTH_AUDIENCE", "crisp-athena-live")
5151
host = os.getenv("ATHENA_HOST", "localhost")
5252
5353
# Create credential helper
@@ -125,7 +125,7 @@ All examples use environment variables for configuration. Create a ``.env`` file
125125
126126
# Optional OAuth configuration (defaults shown)
127127
OAUTH_AUTH_URL=https://crispthinking.auth0.com/oauth/token
128-
OAUTH_AUDIENCE=crisp-athena-dev
128+
OAUTH_AUDIENCE=crisp-athena-live
129129
130130
Running the Examples
131131
--------------------

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ For development and testing, you'll typically need these environment variables:
164164
165165
# Optional OAuth configuration
166166
export OAUTH_AUTH_URL="https://crispthinking.auth0.com/oauth/token"
167-
export OAUTH_AUDIENCE="crisp-athena-dev"
167+
export OAUTH_AUDIENCE="crisp-athena-live"
168168
169169
You can create a `.env` file in the project root with these variables, and the examples will automatically load them using `python-dotenv`.
170170

examples/classify_single_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def main() -> int:
192192
auth_url = os.getenv(
193193
"OAUTH_AUTH_URL", "https://crispthinking.auth0.com/oauth/token"
194194
)
195-
audience = os.getenv("OAUTH_AUDIENCE", "crisp-athena-dev")
195+
audience = os.getenv("OAUTH_AUDIENCE", "crisp-athena-live")
196196

197197
if not client_id or not client_secret:
198198
logger.error("OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET must be set")

examples/example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ async def main() -> int:
143143
auth_url = os.getenv(
144144
"OAUTH_AUTH_URL", "https://crispthinking.auth0.com/oauth/token"
145145
)
146-
audience = os.getenv("OAUTH_AUDIENCE", "crisp-athena-dev")
146+
audience = os.getenv("OAUTH_AUDIENCE", "crisp-athena-live")
147147

148148
if not client_id or not client_secret:
149149
logger.error("OAUTH_CLIENT_ID and OAUTH_CLIENT_SECRET must be set")

src/resolver_athena_client/client/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(
5353
client_id: str,
5454
client_secret: str,
5555
auth_url: str = "https://crispthinking.auth0.com/oauth/token",
56-
audience: str = "crisp-athena-dev",
56+
audience: str = "crisp-athena-live",
5757
) -> None:
5858
"""Initialize the credential helper.
5959

tests/client/test_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_init_with_valid_params(self) -> None:
7272
assert helper._client_id == "test_client_id"
7373
assert helper._client_secret == "test_client_secret"
7474
assert helper._auth_url == "https://crispthinking.auth0.com/oauth/token"
75-
assert helper._audience == "crisp-athena-dev"
75+
assert helper._audience == "crisp-athena-live"
7676
assert helper._token is None
7777
assert helper._token_expires_at is None
7878

0 commit comments

Comments
 (0)