examples/auth/oci_oauth/README.md
This example demonstrates how to use the OCI IAM OAuth provider with FastMCP servers.
For details instructions with screenshots, please refer to FastMCP OCI Provider Documentation.
# Required
FASTMCP_SERVER_AUTH_IDCS_CLIENT_ID=your-application-client-id
FASTMCP_SERVER_AUTH_IDCS_CLIENT_SECRET=your-client-secret-value
FASTMCP_SERVER_AUTH_IDCS_DOMAIN=your-iam-domain-url # IDCS domain URL for example idcs-abscasdwdac3432rdwsda.identity.oraclecloud.com
Start the server:
python server.py
Test with client:
python client.py
When you run the client, it will open a browser on your machine to login to OCI IAM domain.