Class RepositoryAuthenticationStrategy
Using SharpRepository to authenticate RPC node operators
Inheritance
System.Object
RepositoryAuthenticationStrategy
Namespace: Catalyst.Core.Modules.Authentication
Assembly: Catalyst.Core.Modules.Authentication.dll
Syntax
public class RepositoryAuthenticationStrategy : IAuthenticationStrategy
Constructors
| Improve this Doc View SourceRepositoryAuthenticationStrategy(IAuthCredentialRepository)
Initializes a new instance of the RepositoryAuthenticationStrategy class.
Declaration
public RepositoryAuthenticationStrategy(IAuthCredentialRepository trustedPeers)
Parameters
Type | Name | Description |
---|---|---|
IAuthCredentialRepository | trustedPeers | The trusted peers. |
Methods
| Improve this Doc View SourceAuthenticate(PeerId)
Declaration
public bool Authenticate(PeerId peerIdentifier)
Parameters
Type | Name | Description |
---|---|---|
PeerId | peerIdentifier |
Returns
Type | Description |
---|---|
System.Boolean |