Documentation ¶
Index ¶
- Variables
- type Client
- func (c Client) AddToScopeACL(ctx context.Context, scope, consumerOrgno string) (*types.ConsumerRegistration, error)
- func (c Client) CanAccessScope(ctx context.Context, scope nais_io_v1.ConsumedScope) (bool, error)
- func (c Client) DeactivateConsumer(ctx context.Context, scope, consumerOrgno string) (*types.ConsumerRegistration, error)
- func (c Client) Delete(ctx context.Context, clientID string) error
- func (c Client) DeleteScope(ctx context.Context, scope string) (*types.ScopeRegistration, error)
- func (c Client) Exists(ctx context.Context, desired clients.Instance, clusterName string) (bool, error)
- func (c Client) GetAccessibleScopes(ctx context.Context) ([]types.Scope, error)
- func (c Client) GetKeys(ctx context.Context, clientID string) (*types.JwksResponse, error)
- func (c Client) GetOpenScopes(ctx context.Context) ([]types.ScopeRegistration, error)
- func (c Client) GetRegistration(desired clients.Instance, ctx context.Context, clusterName string) (*types.ClientRegistration, error)
- func (c Client) GetScopeACL(ctx context.Context, scope string) (*[]types.ConsumerRegistration, error)
- func (c Client) GetScopes(ctx context.Context) ([]types.ScopeRegistration, error)
- func (c Client) Register(ctx context.Context, payload types.ClientRegistration) (*types.ClientRegistration, error)
- func (c Client) RegisterKeys(ctx context.Context, clientID string, payload *jose.JSONWebKeySet) (*types.JwksResponse, error)
- func (c Client) RegisterScope(ctx context.Context, payload types.ScopeRegistration) (*types.ScopeRegistration, error)
- func (c Client) Update(ctx context.Context, payload types.ClientRegistration, clientID string) (*types.ClientRegistration, error)
- func (c Client) UpdateScope(ctx context.Context, payload types.ScopeRegistration, scope string) (*types.ScopeRegistration, error)
- type Error
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServerError = errors.New("ServerError") ClientError = errors.New("ClientError") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HttpClient *http.Client Signer jose.Signer Config *config.Config // contains filtered or unexported fields }
func (Client) AddToScopeACL ¶
func (Client) CanAccessScope ¶
CanAccessScope checks if the authenticated organization can access given scope.
func (Client) DeactivateConsumer ¶
func (Client) DeleteScope ¶
func (Client) GetAccessibleScopes ¶
GetAccessibleScopes returns all scopes that the authenticated organization has been granted access to.
func (Client) GetOpenScopes ¶
GetOpenScopes returns all scopes that are accessible to any organization.
func (Client) GetRegistration ¶
func (Client) GetScopeACL ¶
func (Client) Register ¶
func (c Client) Register(ctx context.Context, payload types.ClientRegistration) (*types.ClientRegistration, error)
func (Client) RegisterKeys ¶
func (Client) RegisterScope ¶
func (c Client) RegisterScope(ctx context.Context, payload types.ScopeRegistration) (*types.ScopeRegistration, error)
func (Client) Update ¶
func (c Client) Update(ctx context.Context, payload types.ClientRegistration, clientID string) (*types.ClientRegistration, error)
func (Client) UpdateScope ¶
func (c Client) UpdateScope(ctx context.Context, payload types.ScopeRegistration, scope string) (*types.ScopeRegistration, error)
type TokenResponse ¶
type TokenResponse struct {
AccessToken string `json:"access_token"`
}
Click to show internal directories.
Click to hide internal directories.