api/clients library

Library with helper methods to access the ZITADEL API itself.

Enables the creation of gRPC service clients for admin, auth, and management APIs of ZITADEL and provides MetadataProviders to authenticate the clients against ZITADEL.

Functions

accessTokenProvider(String accessToken) → MetadataProvider
Metadata provider that attaches a given accessToken to any request a client sends. The token is attached with the Bearer auth-scheme.
createAdminClient(String apiEndpoint, {int port = 443, Map<String, String>? metadata, Iterable<MetadataProvider>? metadataProviders, Iterable<ClientInterceptor>? interceptors}) AdminServiceClient
Create a new AdminServiceClient to access the Admin API of ZITADEL.
createAuthClient(String apiEndpoint, {int port = 443, Map<String, String>? metadata, Iterable<MetadataProvider>? metadataProviders, Iterable<ClientInterceptor>? interceptors}) AuthServiceClient
Create a new AuthServiceClient to access the Admin API of ZITADEL.
createManagementClient(String apiEndpoint, {int port = 443, Map<String, String>? metadata, Iterable<MetadataProvider>? metadataProviders, Iterable<ClientInterceptor>? interceptors}) ManagementServiceClient
Create a new ManagementServiceClient to access the Admin API of ZITADEL.
serviceAccountProvider(String audience, ServiceAccount serviceAccount, [AuthenticationOptions? options]) → MetadataProvider
Metadata provider that authenticates the service client calls with a given ServiceAccount.