|
NameOpenXPKI::Service::Default - basic service implementationDescriptionThis is the common Service implementation to be used by most interactive clients. It supports PKI realm selection, user authentication and session handling.Protocol DefinitionConnection startupYou can send two messages at the beginning of a connection. You can ask to continue an old session or you start a new session. The answer is always the same - the session ID or an error message.Session init --> {SERVICE_MSG => "NEW_SESSION", LANGUAGE => $lang} <-- {SESSION_ID => $ID} --> {SERVICE_MSG => "SESSION_ID_ACCEPTED"} <-- {SERVICE_MSG => "GET_PKI_REALM", PARAMS => { PKI_REALM => { "0" => { NAME => "Root Realm", DESCRIPTION => "This is an example root realm." } } } } } --> {SERVICE_MSG => "GET_PKI_REALM", PARAMS => { PKI_REALM => $realm, } } <-- {SERVICE_MSG => "GET_AUTHENTICATION_STACK", PARAMS => { AUTHENTICATION_STACKS => { "0" => { NAME => "Basic Root Auth Stack", DESCRIPTION => "This is the basic root authentication stack." } } } } --> {SERVICE_MSG => "GET_AUTHENTICATION_STACK", PARAMS => { AUTHENTICATION_STACK => "0" } } Example 1: Anonymous Login <-- {SERVICE_MSG => "SERVICE_READY"} Answer is the first command. Example 2: Password Login <-- {SERVICE_MSG => "GET_PASSWD_LOGIN", PARAMS => { NAME => "XYZ", DESCRIPTION => "bla bla ..." } } --> {LOGIN => "John Doe", PASSWD => "12345678"} on success ... <-- {SERVICE_MSG => "SERVICE_READY"} on failure ... <-- {ERROR => "some already translated message"} Session continue --> {SERVICE_MSG => "CONTINUE_SESSION", SESSION_ID => $ID} <-- {SESSION_ID => $ID} --> {SERVICE_MSG => "SESSION_ID_ACCEPTED} <-- {SERVICE_MSG => "SERVICE_READY"} FunctionsThe functions does nothing else than to support the test stuff with a working user interface dummy.
Visit the GSP FreeBSD Man Page Interface. |