![]() |
![]()
| ![]() |
![]()
NameOpenXPKI::Service::Default - basic service implementation DescriptionThis 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",
<-- {SESSION_ID => $ID} --> {SERVICE_MSG => "SESSION_ID_ACCEPTED"} <-- {SERVICE_MSG => "GET_PKI_REALM",
--> {SERVICE_MSG => "GET_PKI_REALM",
<-- {SERVICE_MSG => "GET_AUTHENTICATION_STACK",
--> {SERVICE_MSG => "GET_AUTHENTICATION_STACK",
<-- {SERVICE_MSG => "SERVICE_READY"} Answer is the first command. Example 2: Password Login <-- {SERVICE_MSG => "GET_PASSWD_LOGIN",
--> {LOGIN => "John Doe",
on success ... <-- {SERVICE_MSG => "SERVICE_READY"} on failure ... <-- {ERROR => "some already translated message"} Session continue --> {SERVICE_MSG => "CONTINUE_SESSION",
<-- {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.
|