
JetBrains.Space does not handle retrieving an access token that can be used with BearerTokenConnection or RefreshTokenConnection. RefreshTokenConnection - Extends BearerTokenConnection and automatically refreshes tokens using the Refresh Token Flow.This is typically used by applications that act on behalf of a user. BearerTokenConnection - Uses a bearer token obtained using other flows, or a personal token.This is typically used by a Space application that acts on behalf of itself. ClientCredentialsConnection - Supports the Client Credentials Flow.A connection keeps track of the Space organization URL, and registers the required JSON serializers that are used under the hood.Ĭonnection has several implementations that can be used to authenticate and work with Space: Authentication and ConnectionĬommunication with Space is handled by the Connection base class. The package provides necessary types to connect to and interact with the Space API.

To retrieve nested properties, check nested properties. The memberProfile will expose top level properties, such as Id, Username, About, and more. Var memberProfile = await teamDirector圜lient. Create a ConnectionĪfter installing in our project, we can use the Client ID and Client Secret of our Space application to create a ClientCredentialsConnection against our Space organization: Make sure to enable the Client Credentials Flow in your application's Authentication settings. There are various application types, all supporting different authentication flows.įor this example, we will use a Client application. We will need to register an application to work with the Space API. Let's have a look at how we can start working with.

