Documentation
¶
Overview ¶
Package auth is a generated GoMock package.
Index ¶
- Constants
- type Auth
- func (auth *Auth) AuthorizationEndpointEnabled() bool
- func (auth *Auth) AuthzServer() oauth.AuthorizationServer
- func (auth *Auth) Config() interface{}
- func (auth *Auth) Configure(config core.ServerConfig) error
- func (auth *Auth) ContractNotary() services.ContractNotary
- func (auth *Auth) IAMClient() iam.Client
- func (auth *Auth) Name() string
- func (auth *Auth) PublicURL() *url.URL
- func (auth *Auth) RelyingParty() oauth.RelyingParty
- func (auth *Auth) Shutdown() error
- func (auth *Auth) Start() error
- func (auth *Auth) SupportedDIDMethods() []string
- type AuthenticationServices
- type AuthorizationEndpointConfig
- type CORSConfig
- type Config
- type IrmaConfig
- type MockAuthenticationServices
- func (m *MockAuthenticationServices) AuthorizationEndpointEnabled() bool
- func (m *MockAuthenticationServices) AuthzServer() oauth.AuthorizationServer
- func (m *MockAuthenticationServices) ContractNotary() services.ContractNotary
- func (m *MockAuthenticationServices) EXPECT() *MockAuthenticationServicesMockRecorder
- func (m *MockAuthenticationServices) IAMClient() iam.Client
- func (m *MockAuthenticationServices) PublicURL() *url.URL
- func (m *MockAuthenticationServices) RelyingParty() oauth.RelyingParty
- func (m *MockAuthenticationServices) SupportedDIDMethods() []string
- type MockAuthenticationServicesMockRecorder
- func (mr *MockAuthenticationServicesMockRecorder) AuthorizationEndpointEnabled() *gomock.Call
- func (mr *MockAuthenticationServicesMockRecorder) AuthzServer() *gomock.Call
- func (mr *MockAuthenticationServicesMockRecorder) ContractNotary() *gomock.Call
- func (mr *MockAuthenticationServicesMockRecorder) IAMClient() *gomock.Call
- func (mr *MockAuthenticationServicesMockRecorder) PublicURL() *gomock.Call
- func (mr *MockAuthenticationServicesMockRecorder) RelyingParty() *gomock.Call
- func (mr *MockAuthenticationServicesMockRecorder) SupportedDIDMethods() *gomock.Call
Constants ¶
const ModuleName = "Auth"
ModuleName contains the name of this module
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth is the main struct of the Auth service
func NewAuthInstance ¶
func NewAuthInstance(config Config, vdrInstance vdr.VDR, subjectManager didsubject.Manager, vcr vcr.VCR, keyStore crypto.KeyStore, serviceResolver didman.CompoundServiceResolver, jsonldManager jsonld.JSONLD, pkiProvider pki.Provider) *Auth
NewAuthInstance accepts a Config with several Nuts Engines and returns an instance of Auth
func (*Auth) AuthorizationEndpointEnabled ¶
AuthorizationEndpointEnabled returns whether the v2 API's OAuth2 Authorization Endpoint is enabled.
func (*Auth) AuthzServer ¶
func (auth *Auth) AuthzServer() oauth.AuthorizationServer
AuthzServer returns the oauth.AuthorizationServer
func (*Auth) Config ¶
func (auth *Auth) Config() interface{}
Config returns the actual config of the module.
func (*Auth) Configure ¶
func (auth *Auth) Configure(config core.ServerConfig) error
Configure the Auth struct by creating a validator and create an Irma server
func (*Auth) ContractNotary ¶
func (auth *Auth) ContractNotary() services.ContractNotary
ContractNotary returns an implementation of the ContractNotary interface.
func (*Auth) RelyingParty ¶
func (auth *Auth) RelyingParty() oauth.RelyingParty
RelyingParty returns the oauth.RelyingParty
func (*Auth) SupportedDIDMethods ¶
type AuthenticationServices ¶
type AuthenticationServices interface {
// AuthzServer returns the oauth.AuthorizationServer
AuthzServer() oauth.AuthorizationServer
// IAMClient returns the IAM Client API
IAMClient() iam.Client
// RelyingParty returns the oauth.RelyingParty
RelyingParty() oauth.RelyingParty
// ContractNotary returns an instance of ContractNotary
ContractNotary() services.ContractNotary
// PublicURL returns the public URL of the node.
PublicURL() *url.URL
// AuthorizationEndpointEnabled returns whether the v2 API's OAuth2 Authorization Endpoint is enabled.
AuthorizationEndpointEnabled() bool
// SupportedDIDMethods lists the DID methods the Nuts node can resolve.
SupportedDIDMethods() []string
}
AuthenticationServices is the interface which should be implemented for clients or mocks
type AuthorizationEndpointConfig ¶
type AuthorizationEndpointConfig struct {
// Enabled is a flag to enable or disable the v2 API's Authorization Endpoint (/authorize), used for:
// - As OpenID4VP verifier: to authenticate clients (that initiate the Authorized Code flow) using OpenID4VP
// - As OpenID4VP wallet: to authenticate verifiers using OpenID4VP
// - As OpenID4VCI wallet: to support dynamic credential requests (currently not supported)
// Disabling the authorization endpoint will also disable to callback endpoint and removes the endpoint from the metadata.
Enabled bool `koanf:"enabled"`
}
type CORSConfig ¶
type CORSConfig struct {
// Origin specifies the AllowOrigin option. If no origins are given CORS is considered to be disabled.
Origin []string `koanf:"origin"`
}
CORSConfig contains configuration for Cross Origin Resource Sharing.
type Config ¶
type Config struct {
Irma IrmaConfig `koanf:"irma"`
HTTPTimeout int `koanf:"http.timeout"`
ClockSkew int `koanf:"clockskew"`
ContractValidators []string `koanf:"contractvalidators"`
AccessTokenLifeSpan int `koanf:"accesstokenlifespan"`
AuthorizationEndpoint AuthorizationEndpointConfig `koanf:"authorizationendpoint"`
}
Config holds all the configuration params
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns an instance of Config with the default values.
func TestConfig ¶
func TestConfig() Config
type IrmaConfig ¶
type IrmaConfig struct {
SchemeManager string `koanf:"schememanager"`
AutoUpdateSchemas bool `koanf:"autoupdateschemas"`
CORS CORSConfig `koanf:"cors"`
}
type MockAuthenticationServices ¶
type MockAuthenticationServices struct {
// contains filtered or unexported fields
}
MockAuthenticationServices is a mock of AuthenticationServices interface.
func NewMockAuthenticationServices ¶
func NewMockAuthenticationServices(ctrl *gomock.Controller) *MockAuthenticationServices
NewMockAuthenticationServices creates a new mock instance.
func (*MockAuthenticationServices) AuthorizationEndpointEnabled ¶
func (m *MockAuthenticationServices) AuthorizationEndpointEnabled() bool
AuthorizationEndpointEnabled mocks base method.
func (*MockAuthenticationServices) AuthzServer ¶
func (m *MockAuthenticationServices) AuthzServer() oauth.AuthorizationServer
AuthzServer mocks base method.
func (*MockAuthenticationServices) ContractNotary ¶
func (m *MockAuthenticationServices) ContractNotary() services.ContractNotary
ContractNotary mocks base method.
func (*MockAuthenticationServices) EXPECT ¶
func (m *MockAuthenticationServices) EXPECT() *MockAuthenticationServicesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthenticationServices) IAMClient ¶
func (m *MockAuthenticationServices) IAMClient() iam.Client
IAMClient mocks base method.
func (*MockAuthenticationServices) PublicURL ¶
func (m *MockAuthenticationServices) PublicURL() *url.URL
PublicURL mocks base method.
func (*MockAuthenticationServices) RelyingParty ¶
func (m *MockAuthenticationServices) RelyingParty() oauth.RelyingParty
RelyingParty mocks base method.
func (*MockAuthenticationServices) SupportedDIDMethods ¶
func (m *MockAuthenticationServices) SupportedDIDMethods() []string
SupportedDIDMethods mocks base method.
type MockAuthenticationServicesMockRecorder ¶
type MockAuthenticationServicesMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthenticationServicesMockRecorder is the mock recorder for MockAuthenticationServices.
func (*MockAuthenticationServicesMockRecorder) AuthorizationEndpointEnabled ¶
func (mr *MockAuthenticationServicesMockRecorder) AuthorizationEndpointEnabled() *gomock.Call
AuthorizationEndpointEnabled indicates an expected call of AuthorizationEndpointEnabled.
func (*MockAuthenticationServicesMockRecorder) AuthzServer ¶
func (mr *MockAuthenticationServicesMockRecorder) AuthzServer() *gomock.Call
AuthzServer indicates an expected call of AuthzServer.
func (*MockAuthenticationServicesMockRecorder) ContractNotary ¶
func (mr *MockAuthenticationServicesMockRecorder) ContractNotary() *gomock.Call
ContractNotary indicates an expected call of ContractNotary.
func (*MockAuthenticationServicesMockRecorder) IAMClient ¶
func (mr *MockAuthenticationServicesMockRecorder) IAMClient() *gomock.Call
IAMClient indicates an expected call of IAMClient.
func (*MockAuthenticationServicesMockRecorder) PublicURL ¶
func (mr *MockAuthenticationServicesMockRecorder) PublicURL() *gomock.Call
PublicURL indicates an expected call of PublicURL.
func (*MockAuthenticationServicesMockRecorder) RelyingParty ¶
func (mr *MockAuthenticationServicesMockRecorder) RelyingParty() *gomock.Call
RelyingParty indicates an expected call of RelyingParty.
func (*MockAuthenticationServicesMockRecorder) SupportedDIDMethods ¶
func (mr *MockAuthenticationServicesMockRecorder) SupportedDIDMethods() *gomock.Call
SupportedDIDMethods indicates an expected call of SupportedDIDMethods.
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
auth/v1
Package v1 provides primitives to interact with the openapi HTTP API.
|
Package v1 provides primitives to interact with the openapi HTTP API. |
|
auth/v1/client
Package client provides primitives to interact with the openapi HTTP API.
|
Package client provides primitives to interact with the openapi HTTP API. |
|
iam
Package iam provides primitives to interact with the openapi HTTP API.
|
Package iam provides primitives to interact with the openapi HTTP API. |
|
client
|
|
|
iam
Package iam is a generated GoMock package.
|
Package iam is a generated GoMock package. |
|
Package contract is a generated GoMock package.
|
Package contract is a generated GoMock package. |
|
Package oauth contains generic OAuth related functionality, variables and constants
|
Package oauth contains generic OAuth related functionality, variables and constants |
|
Package services is a generated GoMock package.
|
Package services is a generated GoMock package. |
|
oauth
Package oauth is a generated GoMock package.
|
Package oauth is a generated GoMock package. |
|
selfsigned/types
Package types is a generated GoMock package.
|
Package types is a generated GoMock package. |
|
selfsigned/web
Package web provides primitives to interact with the openapi HTTP API.
|
Package web provides primitives to interact with the openapi HTTP API. |