Skip to content

Commit a94039e

Browse files
committed
add opey consumer key info to README
1 parent 625d122 commit a94039e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OBP_OIDC_ISSUER_URL=http://localhost:9000/obp-oidc
4242
OBP_AUTHORIZATION_VIA="none" # Options: "oauth", "consent", "none"
4343

4444
# OBP API consumer key that opey uses (required for "consent" authorization method with opey)
45-
OPEY_OPEY_OBP_CONSUMER_KEY="obp-opey-ii-client"
45+
OBP_OPEY_CONSUMER_KEY="obp-opey-ii-client"
4646

4747
# Multi-issuer bearer-only mode:
4848
# Set BOTH KEYCLOAK_REALM_URL and OBP_OIDC_ISSUER_URL with AUTH_PROVIDER=bearer-only

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ ENABLE_OAUTH="true"
186186
AUTH_PROVIDER=bearer-only
187187
OBP_OIDC_ISSUER_URL=http://localhost:9000/obp-oidc
188188
OBP_AUTHORIZATION_VIA="consent"
189+
OBP_OPEY_CONSUMER_KEY=<opey's consumer key (same as the OBP_CONSUMER_KEY in Opey)>
189190
```
190191
> [!NOTE] You will not be able to use the MCP server, set up in this way, with any other MCP clients, unless they are capable of creating valid consents onl the fly.
191192

src/mcp_server_obp/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,11 @@ async def call_obp_api(
295295
}, indent=2)
296296
request_headers["Consent-JWT"] = consent_jwt
297297

298-
consumer_key = os.getenv("OPEY_OBP_CONSUMER_KEY")
298+
consumer_key = os.getenv("OBP_OPEY_CONSUMER_KEY")
299299
if consumer_key:
300300
request_headers["Consumer-Key"] = consumer_key
301301
else:
302-
logger.warning("OPEY_OBP_CONSUMER_KEY is not set in environment variables. Consent-based authorization will fail without it.")
302+
logger.warning("OBP_OPEY_CONSUMER_KEY is not set in environment variables. Consent-based authorization will fail without it.")
303303

304304
case "none":
305305
# No authorization

0 commit comments

Comments
 (0)