AlbaApi

<back to all web services

ValidateNemIdRequestModel

The following routes are available for this service:
GET/nemidvalidatelogin
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AlbaApi.Model
Imports SPS.Core.Api.Frame.NemID
Imports SPS.Core.Api.Frame
Imports SPS.Core.Api

Namespace Global

    Namespace AlbaApi.Model

        Public Partial Class ValidateNemIdRequestModel
        End Class
    End Namespace

    Namespace SPS.Core.Api

        Public Partial Class Body
        End Class
    End Namespace

    Namespace SPS.Core.Api.Frame

        Public Enum ClientFlow
            NemID
            NemIDSignature
            NemIDKeyFile
            NemIDKeyFileSignature
            NL3Signature
            Invalid
            LoadTest
        End Enum

        Public Partial Class FlowMessage
            Inherits Body
            Public Overridable Property Timestamp As String
            Public Overridable Property TransactionIdentifier As String
        End Class

        Public Partial Class FlowResult
            Inherits FlowMessage
            Public Overridable Property ClientFlow As ClientFlow
            Public Overridable Property Status As FlowStatus
            Public Overridable Property IsSuccess As Boolean
            Public Overridable Property Message As String
            Public Overridable Property UserMessage As String
            Public Overridable Property FlowErrorCode As String
        End Class

        Public Enum FlowStatus
            Ok
            UserCancel
            ClientFlowError
            FlowError
            ValidationError
        End Enum
    End Namespace

    Namespace SPS.Core.Api.Frame.NemID

        Public Partial Class AuthenticationInfo
            Public Sub New()
                ClientCertificate = New Byte(){}
            End Sub

            Public Overridable Property Pid As String
            Public Overridable Property Dn As String
            Public Overridable Property CommonName As String
            Public Overridable Property Rid As String
            Public Overridable Property Cpr As String
            Public Overridable Property Cvr As String
            Public Overridable Property Company As String
            Public Overridable Property Email As String
            Public Overridable Property SignedXml As String
            Public Overridable Property IssuerDn As String
            Public Overridable Property IsYouthCert As Boolean
            Public Overridable Property CertificateType As CertificateType
            Public Overridable Property SubjectSerialNumber As String
            Public Overridable Property SignProperties As IList(Of SignProperty)
            Public Overridable Property RememberUserIdToken As String
            Public Overridable Property LogonType As LogonType
            Public Overridable Property CertificateSerialNumber As String
            Public Overridable Property ClientCertificate As Byte()
            Public Overridable Property AuthorizedToRepresent As String
        End Class

        Public Enum CertificateType
            Poces
            Moces
            Voces
            Foces
        End Enum

        Public Enum LogonType
            Otp
            KeyFile
            Unknown
        End Enum

        Public Partial Class NemIDFlowResult
            Inherits FlowResult
            Public Overridable Property AuthenticationInfo As AuthenticationInfo
        End Class

        Public Partial Class SignProperty
            Public Overridable Property Name As String
            Public Overridable Property Value As String
        End Class
    End Namespace
End Namespace

VB.NET ValidateNemIdRequestModel DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /nemidvalidatelogin HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"authenticationInfo":{"pid":"String","dn":"String","commonName":"String","rid":"String","cpr":"String","cvr":"String","company":"String","email":"String","signedXml":"String","issuerDn":"String","isYouthCert":false,"certificateType":"Poces","subjectSerialNumber":"String","rememberUserIdToken":"String","logonType":"Otp","certificateSerialNumber":"String","clientCertificate":"AA==","authorizedToRepresent":"String"},"clientFlow":"NemID","status":"Ok","isSuccess":true,"message":"String","userMessage":"String","flowErrorCode":"String","timestamp":"String","transactionIdentifier":"String"}