Documentation
¶
Index ¶
- Constants
- Variables
- func NewInteractiveResponseMiddleware(runtime *restish.CLI, open func(string) error, diagnostics io.Writer, ...) restish.ResponseMiddleware
- type AccessOffer
- type AuthorizationContext
- type CredentialBinding
- type CredentialSource
- type ExecutionIdentity
- type Identity
- type Service
- func (s *Service) APIBaseURL() string
- func (s *Service) AcceptAccessOffer(offer AccessOffer) (CredentialBinding, error)
- func (s *Service) ActiveBindingForResource(resourceIndicator string) (CredentialBinding, error)
- func (s *Service) Authenticate(ctx context.Context, request *http.Request, scopes []string) error
- func (s *Service) AuthorizationContexts(resourceIndicator string) ([]AuthorizationContext, error)
- func (s *Service) BindingForAuthorizationContext(resourceIndicator string, details []map[string]any) (CredentialBinding, AuthorizationContext, error)
- func (s *Service) BindingForAuthorizationContextAllAuthority(resourceIndicator string, details []map[string]any) (CredentialBinding, error)
- func (s *Service) BindingForAuthorizationContextScopeAlternatives(resourceIndicator string, details []map[string]any, alternatives [][]string) (CredentialBinding, error)
- func (s *Service) BindingForReferenceScopeAlternatives(resourceIndicator, reference string, alternatives [][]string) (CredentialBinding, error)
- func (s *Service) BindingForResource(resourceIndicator string) (CredentialBinding, error)
- func (s *Service) ClearContext(resourceIndicator string) error
- func (s *Service) CredentialSource() *CredentialSource
- func (s *Service) Enroll(ctx context.Context, username, nickname string) (Identity, error)
- func (s *Service) ExecutionBinding(resourceIndicator string, details []map[string]any) (CredentialBinding, error)
- func (s *Service) ExecutionIdentity(ctx context.Context) (ExecutionIdentity, error)
- func (s *Service) HTTPClient() *http.Client
- func (s *Service) OpenApproval(rawURL string) error
- func (s *Service) Origin() string
- func (s *Service) RequestEditor(scopes ...string) restishRequestEditor
- func (s *Service) Runtime() (string, error)
- func (s *Service) SelectAuthorizationContext(resourceIndicator string, details []map[string]any) (AuthorizationContext, error)
- func (s *Service) SelectedContext(resourceIndicator string) ([]map[string]any, error)
- func (s *Service) StoreContext(resourceIndicator string, details []map[string]any) error
- func (s *Service) WhoAmI(ctx context.Context) (Identity, error)
Constants ¶
View Source
const DefaultOrigin = "https://id.realmroot.dev"
Variables ¶
View Source
var ErrAuthorizationContextAmbiguous = errors.New("multiple authorization contexts can satisfy the operation")
Functions ¶
func NewInteractiveResponseMiddleware ¶
func NewInteractiveResponseMiddleware( runtime *restish.CLI, open func(string) error, diagnostics io.Writer, noBrowser bool, profileName string, ) restish.ResponseMiddleware
NewInteractiveResponseMiddleware handles profiled controller interactions for any Resource Server without knowing its endpoint names.
Types ¶
type AccessOffer ¶
type AuthorizationContext ¶
type CredentialBinding ¶
type CredentialSource ¶
type CredentialSource struct {
// contains filtered or unexported fields
}
func (*CredentialSource) Describe ¶
func (source *CredentialSource) Describe(ctx context.Context, _, _, _, reference string, scopes []string) (restish.DPoPCredentialDescription, error)
func (*CredentialSource) Issue ¶
func (source *CredentialSource) Issue(ctx context.Context, _, _, _, reference, proof string, scopes []string) (restish.DPoPIssuedCredential, error)
type ExecutionIdentity ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) APIBaseURL ¶
func (*Service) AcceptAccessOffer ¶
func (s *Service) AcceptAccessOffer(offer AccessOffer) (CredentialBinding, error)
func (*Service) ActiveBindingForResource ¶
func (s *Service) ActiveBindingForResource(resourceIndicator string) (CredentialBinding, error)
func (*Service) Authenticate ¶
func (*Service) AuthorizationContexts ¶
func (s *Service) AuthorizationContexts(resourceIndicator string) ([]AuthorizationContext, error)
func (*Service) BindingForAuthorizationContext ¶
func (s *Service) BindingForAuthorizationContext(resourceIndicator string, details []map[string]any) (CredentialBinding, AuthorizationContext, error)
func (*Service) BindingForAuthorizationContextAllAuthority ¶
func (*Service) BindingForAuthorizationContextScopeAlternatives ¶
func (*Service) BindingForReferenceScopeAlternatives ¶
func (s *Service) BindingForReferenceScopeAlternatives(resourceIndicator, reference string, alternatives [][]string) (CredentialBinding, error)
func (*Service) BindingForResource ¶
func (s *Service) BindingForResource(resourceIndicator string) (CredentialBinding, error)
func (*Service) ClearContext ¶
func (*Service) CredentialSource ¶
func (s *Service) CredentialSource() *CredentialSource
func (*Service) ExecutionBinding ¶
func (*Service) ExecutionIdentity ¶
func (s *Service) ExecutionIdentity(ctx context.Context) (ExecutionIdentity, error)
func (*Service) HTTPClient ¶
func (*Service) OpenApproval ¶
func (*Service) RequestEditor ¶
func (*Service) SelectAuthorizationContext ¶
func (*Service) SelectedContext ¶
func (*Service) StoreContext ¶
Click to show internal directories.
Click to hide internal directories.