Documentation
¶
Index ¶
- type ApplicationBaseModel
- type ApplicationBasicInfoResponseModel
- type ApplicationBasicInfoUpdateModel
- type ApplicationClient
- func (c *ApplicationClient) AuthorizeAPI(ctx context.Context, appID string, apiAuthorization AuthorizedAPICreateModel) error
- func (c *ApplicationClient) CreateM2MApp(ctx context.Context, name string) (*ApplicationBasicInfoResponseModel, error)
- func (c *ApplicationClient) CreateMobileApp(ctx context.Context, name string, redirectURL string) (*ApplicationBasicInfoResponseModel, error)
- func (c *ApplicationClient) CreateSinglePageApp(ctx context.Context, name string, redirectURL string) (*ApplicationBasicInfoResponseModel, error)
- func (c *ApplicationClient) GenerateLoginFlow(ctx context.Context, prompt string) (*LoginFlowGenerateResponseModel, error)
- func (c *ApplicationClient) GetByClienId(ctx context.Context, clientId string) (*ApplicationBasicInfoResponseModel, error)
- func (c *ApplicationClient) GetByName(ctx context.Context, name string) (*ApplicationBasicInfoResponseModel, error)
- func (c *ApplicationClient) GetLoginFlowGenerationResult(ctx context.Context, flowId string) (*LoginFlowResultResponseModel, error)
- func (c *ApplicationClient) GetLoginFlowGenerationStatus(ctx context.Context, flowId string) (*LoginFlowStatusResponseModel, error)
- func (c *ApplicationClient) List(ctx context.Context, limit, offset int) (*ApplicationListResponseModel, error)
- func (c *ApplicationClient) UpdateBasicInfo(ctx context.Context, appId string, updateModel ApplicationBasicInfoUpdateModel) (*ApplicationBasicInfoResponseModel, error)
- type ApplicationListResponseModel
- type AuthorizedAPICreateModel
- type LoginFlowGenerateResponseModel
- type LoginFlowResultResponseModel
- type LoginFlowStatusResponseModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationBaseModel ¶ added in v0.0.3
type ApplicationBasicInfoResponseModel ¶ added in v0.0.6
type ApplicationBasicInfoUpdateModel ¶ added in v0.0.6
type ApplicationBasicInfoUpdateModel struct {
Name *string `json:"name,omitempty"`
Description *string `json:"description,omitempty"`
ImageUrl *string `json:"imageUrl,omitempty"`
AccessUrl *string `json:"accessUrl,omitempty"`
LogoutReturnUrl *string `json:"logoutReturnUrl,omitempty"`
}
ApplicationBasicInfoUpdateModel defines a simplified model for updating basic application information
type ApplicationClient ¶
type ApplicationClient struct {
// contains filtered or unexported fields
}
ApplicationClient is a wrapper around the generated client for the Application Management API
func New ¶
func New(cfg *config.ClientConfig) (*ApplicationClient, error)
New creates a new Application Management API client
func (*ApplicationClient) AuthorizeAPI ¶ added in v0.0.4
func (c *ApplicationClient) AuthorizeAPI(ctx context.Context, appID string, apiAuthorization AuthorizedAPICreateModel) error
AuthorizeAPI authorizes an application to access an API with specified scopes
func (*ApplicationClient) CreateM2MApp ¶ added in v0.0.3
func (c *ApplicationClient) CreateM2MApp(ctx context.Context, name string) (*ApplicationBasicInfoResponseModel, error)
CreateM2MApp creates a new Machine-to-Machine (M2M) Application
func (*ApplicationClient) CreateMobileApp ¶ added in v0.0.3
func (c *ApplicationClient) CreateMobileApp(ctx context.Context, name string, redirectURL string) (*ApplicationBasicInfoResponseModel, error)
CreateMobileApp creates a new Mobile Application with sensible defaults
func (*ApplicationClient) CreateSinglePageApp ¶ added in v0.0.3
func (c *ApplicationClient) CreateSinglePageApp(ctx context.Context, name string, redirectURL string) (*ApplicationBasicInfoResponseModel, error)
CreateSinglePageApp creates a new Single Page Application with sensible defaults
func (*ApplicationClient) GenerateLoginFlow ¶ added in v0.0.5
func (c *ApplicationClient) GenerateLoginFlow(ctx context.Context, prompt string) (*LoginFlowGenerateResponseModel, error)
func (*ApplicationClient) GetByClienId ¶ added in v0.0.3
func (c *ApplicationClient) GetByClienId(ctx context.Context, clientId string) (*ApplicationBasicInfoResponseModel, error)
GetByClienId finds an application by clientId and returns its details todo: improve application details being fetched beyond appId, name, clientId and clientSecret
func (*ApplicationClient) GetByName ¶ added in v0.0.3
func (c *ApplicationClient) GetByName(ctx context.Context, name string) (*ApplicationBasicInfoResponseModel, error)
GetByName finds an application by name and returns its details todo: improve application details being fetched beyond appId, name, clientId and clientSecret
func (*ApplicationClient) GetLoginFlowGenerationResult ¶ added in v0.0.5
func (c *ApplicationClient) GetLoginFlowGenerationResult(ctx context.Context, flowId string) (*LoginFlowResultResponseModel, error)
func (*ApplicationClient) GetLoginFlowGenerationStatus ¶ added in v0.0.5
func (c *ApplicationClient) GetLoginFlowGenerationStatus(ctx context.Context, flowId string) (*LoginFlowStatusResponseModel, error)
func (*ApplicationClient) List ¶
func (c *ApplicationClient) List(ctx context.Context, limit, offset int) (*ApplicationListResponseModel, error)
func (*ApplicationClient) UpdateBasicInfo ¶ added in v0.0.6
func (c *ApplicationClient) UpdateBasicInfo(ctx context.Context, appId string, updateModel ApplicationBasicInfoUpdateModel) (*ApplicationBasicInfoResponseModel, error)
UpdateBasicInfo updates basic information of an existing application
type ApplicationListResponseModel ¶ added in v0.0.6
type ApplicationListResponseModel = internal.ApplicationListResponse
type AuthorizedAPICreateModel ¶ added in v0.0.6
type AuthorizedAPICreateModel = internal.AddAuthorizedAPIJSONRequestBody
type LoginFlowGenerateResponseModel ¶ added in v0.0.6
type LoginFlowGenerateResponseModel = internal.LoginFlowGenerateResponse
type LoginFlowResultResponseModel ¶ added in v0.0.6
type LoginFlowResultResponseModel = internal.LoginFlowResultResponse
type LoginFlowStatusResponseModel ¶ added in v0.0.6
type LoginFlowStatusResponseModel = internal.LoginFlowStatusResponse