oauth20

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(scopeCfgProvider ClientDetailsConfigProvider, publicAccessTokenEndpoint string, hydraService OryHydraService) *service

NewService missing godoc

Types

type ApplicationService

type ApplicationService interface {
	Exist(ctx context.Context, id string) (bool, error)
}

ApplicationService missing godoc

type ClientDetails

type ClientDetails struct {
	Scopes     []string
	GrantTypes []string
}

ClientDetails missing godoc

type ClientDetailsConfigProvider

type ClientDetailsConfigProvider interface {
	GetRequiredScopes(path string) ([]string, error)
	GetRequiredGrantTypes(path string) ([]string, error)
}

ClientDetailsConfigProvider missing godoc

type Config

type Config struct {
	URL                       string        `envconfig:"APP_OAUTH20_URL"`
	PublicAccessTokenEndpoint string        `envconfig:"APP_OAUTH20_PUBLIC_ACCESS_TOKEN_ENDPOINT"`
	HTTPClientTimeout         time.Duration `envconfig:"default=105s,APP_OAUTH20_HTTP_CLIENT_TIMEOUT"`
}

Config missing godoc

type IntegrationSystemService

type IntegrationSystemService interface {
	Exists(ctx context.Context, id string) (bool, error)
}

IntegrationSystemService missing godoc

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver missing godoc

func NewResolver

func NewResolver(transactioner persistence.Transactioner, svc Service, appSvc ApplicationService, rtmSvc RuntimeService, isSvc IntegrationSystemService, systemAuthSvc SystemAuthService, systemAuthConv SystemAuthConverter) *Resolver

NewResolver missing godoc

func (*Resolver) RequestClientCredentialsForApplication

func (r *Resolver) RequestClientCredentialsForApplication(ctx context.Context, id string) (graphql.SystemAuth, error)

RequestClientCredentialsForApplication missing godoc

func (*Resolver) RequestClientCredentialsForIntegrationSystem

func (r *Resolver) RequestClientCredentialsForIntegrationSystem(ctx context.Context, id string) (graphql.SystemAuth, error)

RequestClientCredentialsForIntegrationSystem missing godoc

func (*Resolver) RequestClientCredentialsForRuntime

func (r *Resolver) RequestClientCredentialsForRuntime(ctx context.Context, id string) (graphql.SystemAuth, error)

RequestClientCredentialsForRuntime missing godoc

type RuntimeService

type RuntimeService interface {
	Exist(ctx context.Context, id string) (bool, error)
}

RuntimeService missing godoc

type Service

type Service interface {
	CreateClientCredentials(ctx context.Context, objectType pkgmodel.SystemAuthReferenceObjectType) (*model.OAuthCredentialDataInput, error)
	DeleteClientCredentials(ctx context.Context, clientID string) error
}

Service missing godoc

type SystemAuthConverter

type SystemAuthConverter interface {
	ToGraphQL(model *pkgmodel.SystemAuth) (graphql.SystemAuth, error)
}

SystemAuthConverter missing godoc

type SystemAuthService

type SystemAuthService interface {
	CreateWithCustomID(ctx context.Context, id string, objectType pkgmodel.SystemAuthReferenceObjectType, objectID string, authInput *model.AuthInput) (string, error)
	GetByIDForObject(ctx context.Context, objectType pkgmodel.SystemAuthReferenceObjectType, authID string) (*pkgmodel.SystemAuth, error)
}

SystemAuthService missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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