application

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationBasicInfoResponseModel added in v0.0.6

type ApplicationBasicInfoResponseModel struct {
	Id               string `json:"id"`
	Name             string `json:"name"`
	ClientId         string `json:"client_id"`
	ClientSecret     string `json:"client_secret"`
	RedirectURL      string `json:"redirect_url"`
	AuthorizedScopes string `json:"scope"`
}

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

func NewBasicInfoUpdate added in v0.0.7

func NewBasicInfoUpdate() *ApplicationBasicInfoUpdateModel

NewBasicInfoUpdate creates a new ApplicationBasicInfoUpdateModel with default values

func (*ApplicationBasicInfoUpdateModel) WithAccessUrl added in v0.0.7

WithAccessUrl sets application access URL

func (*ApplicationBasicInfoUpdateModel) WithDescription added in v0.0.7

WithDescription sets application description

func (*ApplicationBasicInfoUpdateModel) WithImageUrl added in v0.0.7

WithImageUrl sets application image URL

func (*ApplicationBasicInfoUpdateModel) WithLogoutReturnUrl added in v0.0.7

func (c *ApplicationBasicInfoUpdateModel) WithLogoutReturnUrl(logoutReturnUrl string) *ApplicationBasicInfoUpdateModel

WithLogoutReturnUrl sets application logout return URL

func (*ApplicationBasicInfoUpdateModel) WithName added in v0.0.7

WithName sets application name

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

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

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) CreateWebAppWithSSR added in v0.0.10

func (c *ApplicationClient) CreateWebAppWithSSR(ctx context.Context, name string, redirectURL string) (*ApplicationBasicInfoResponseModel, error)

CreateWebAppWithSSR creates a new Web Application with Server-Side Rendering support

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

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

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) error

UpdateBasicInfo updates basic information of an existing application

func (*ApplicationClient) UpdateLoginFlow added in v0.0.8

func (c *ApplicationClient) UpdateLoginFlow(ctx context.Context, appId string, loginFlowUpdateRequest LoginFlowUpdateModel) error

func (*ApplicationClient) UpdateOAuthConfig added in v0.0.7

func (c *ApplicationClient) UpdateOAuthConfig(ctx context.Context, applicationId string, config ApplicationOAuthConfigUpdateModel) error

UpdateOAuthConfig updates allowed OAuth configuration fields for an application

type ApplicationListResponseModel added in v0.0.6

type ApplicationListResponseModel = internal.ApplicationListResponse

type ApplicationOAuthConfigUpdateModel added in v0.0.7

type ApplicationOAuthConfigUpdateModel struct {
	AccessTokenAttributes                 *[]string `json:"accessTokenAttributes,omitempty"`
	ApplicationAccessTokenExpiryInSeconds *int64    `json:"applicationAccessTokenExpiryInSeconds,omitempty"`
	UserAccessTokenExpiryInSeconds        *int64    `json:"userAccessTokenExpiryInSeconds,omitempty"`

	AllowedOrigins *[]string `json:"allowedOrigins,omitempty"`
	CallbackURLs   *[]string `json:"callbackURLs,omitempty"`

	Logout *internal.OIDCLogoutConfiguration `json:"logout,omitempty"`

	RefreshTokenExpiryInSeconds *int64 `json:"refreshTokenExpiryInSeconds,omitempty"`
}

ApplicationOAuthConfigUpdateModel contains only the fields that can be updated in OAuth configuration

func NewOAuthConfigUpdate added in v0.0.7

func NewOAuthConfigUpdate() *ApplicationOAuthConfigUpdateModel

NewOAuthConfigUpdate creates a new ApplicationOAuthConfigUpdateModel with default values

func (*ApplicationOAuthConfigUpdateModel) WithAccessTokenAttributes added in v0.0.7

func (c *ApplicationOAuthConfigUpdateModel) WithAccessTokenAttributes(attrs []string) *ApplicationOAuthConfigUpdateModel

WithAccessTokenAttributes sets access token attributes

func (*ApplicationOAuthConfigUpdateModel) WithAllowedOrigins added in v0.0.7

WithAllowedOrigins sets allowed origins for CORS

func (*ApplicationOAuthConfigUpdateModel) WithApplicationAccessTokenExpiry added in v0.0.7

func (c *ApplicationOAuthConfigUpdateModel) WithApplicationAccessTokenExpiry(seconds int64) *ApplicationOAuthConfigUpdateModel

WithApplicationAccessTokenExpiry sets application access token expiry in seconds

func (*ApplicationOAuthConfigUpdateModel) WithCallbackURLs added in v0.0.7

WithCallbackURLs sets callback URLs

func (*ApplicationOAuthConfigUpdateModel) WithRefreshTokenExpiry added in v0.0.7

WithRefreshTokenExpiry sets refresh token expiry in seconds

func (*ApplicationOAuthConfigUpdateModel) WithUserAccessTokenExpiry added in v0.0.7

func (c *ApplicationOAuthConfigUpdateModel) WithUserAccessTokenExpiry(seconds int64) *ApplicationOAuthConfigUpdateModel

WithUserAccessTokenExpiry sets user access token expiry in seconds

type AuthenticatorModel added in v0.0.8

type AuthenticatorModel = internal.Authenticator

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 struct {
	Data   *LoginFlowUpdateModel `json:"data,omitempty"`
	Status *internal.StatusEnum  `json:"status,omitempty"`
}

type LoginFlowStatusResponseModel added in v0.0.6

type LoginFlowStatusResponseModel = internal.LoginFlowStatusResponse

type LoginFlowStepModel added in v0.0.8

type LoginFlowStepModel = internal.AuthenticationStepModel

type LoginFlowTypeModel added in v0.0.8

type LoginFlowTypeModel = internal.AuthenticationSequenceType

type LoginFlowUpdateModel added in v0.0.8

type LoginFlowUpdateModel = internal.AuthenticationSequence

Directories

Path Synopsis
Package internal provides primitives to interact with the openapi HTTP API.
Package internal provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL