Documentation
¶
Index ¶
- Constants
- func GetApiClient(sdkConfig *cellssdk.SdkConfig, anonymous bool) (*sdkclient.PydioCellsRestAPI, error)
- func GetApiTransport(sdkConfig *cellssdk.SdkConfig, anonymous bool) (*client.Runtime, error)
- func OAuthExchangeCode(c *cellssdk.SdkConfig, clientId, code, callbackUrl string) error
- func OAuthPrepareUrl(clientId, state, serverUrl, callbackUrl string) (preparedUrl string, e error)
- func RefreshJwtToken(clientId string, sdkConfig *cellssdk.SdkConfig) (bool, error)
Constants ¶
View Source
const ( // DefaultCallbackUrl is the default URL that is registered for cells-client in the Server out of the box. DefaultCallbackUrl = "http://localhost:3000/servers/callback" // NoBrowserCallbackSuffix is the Uri that is used to display a code that can be copy/pasted by the end user. NoBrowserCallbackSuffix = "/oauth2/oob" )
Variables ¶
This section is empty.
Functions ¶
func GetApiClient ¶
func GetApiTransport ¶
func OAuthExchangeCode ¶
OAuthExchangeCode retrieves an AccessToken/RefreshToken pair using the passed OAuth exchange code. It then updates the passed configuration.
func OAuthPrepareUrl ¶
OAuthPrepareUrl creates a URL that can be opened in a browser or copy/pasted by the end user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.