Documentation
¶
Index ¶
Constants ¶
View Source
const ( CertificateLevel = "QUALIFIED" HashType = "SHA512" InteractionType = "displayTextAndPIN" Timeout = 60 URL = "https://sid.demo.sk.ee/smart-id-rp/v2" )
View Source
const ( // TypeIDC is the identity type for identity card TypeIDC = "IDC" // TypePAS is the identity type for passport TypePAS = "PAS" // TypePNO is the identity type for personal number TypePNO = "PNO" )
https://github.com/SK-EID/smart-id-documentation#2322-etsisemantics-identifier
Variables ¶
This section is empty.
Functions ¶
func NewIdentity ¶
NewIdentity creates a new identity instance
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the client configuration and the HTTP client
func (*Client) Authenticate ¶
func (c *Client) Authenticate(nationalIdentityNumber string) (*models.AuthenticateResponse, error)
Authenticate sends an authentication request to the Smart-ID provider
Click to show internal directories.
Click to hide internal directories.