Interface FromOauthIdentityOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
FromOauthIdentityOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)", date="2026-06-08T20:22:39.999Z") @Stability(Stable) public interface FromOauthIdentityOptions extends software.amazon.jsii.JsiiSerializable
OAuth scopes (and optional custom parameters) when binding an IOAuth2CredentialProvider to a gateway target.

Example:

 Gateway gateway = Gateway.Builder.create(this, "MyGateway")
         .gatewayName("my-gateway")
         .build();
 OAuth2CredentialProvider oauth = OAuth2CredentialProvider.usingGithub(this, "GhOAuth", GithubOAuth2CredentialProviderProps.builder()
         .oAuth2CredentialProviderName("github-oauth")
         .clientId("your-client-id")
         .clientSecret(SecretValue.unsafePlainText("your-client-secret"))
         .build());
 gateway.addMcpServerTarget("Mcp", AddMcpServerTargetOptions.builder()
         .gatewayTargetName("mcp-server")
         .description("MCP with GitHub OAuth")
         .endpoint("https://my-mcp-server.example.com")
         .credentialProviderConfigurations(List.of(GatewayCredentialProvider.fromOauthIdentity(oauth, FromOauthIdentityOptions.builder()
                 .scopes(List.of("read:user"))
                 .build())))
         .build());