Mudanças entre as edições de "Authentication.svc"

De LATROMI Manuais
Ir para: navegação, pesquisa
(Web Service REST)
(Web Service REST)
Linha 4: Linha 4:
 
== Web Service REST ==
 
== Web Service REST ==
  
{|  class="wikitable propertytable"
+
{|  class="wikitable"
|+teste
+
|+ Códigos de Retorno (Status)
 +
! Código !! Descrição
 
|-
 
|-
|Nome
+
| 100
|
+
| Sucess
 
|-  
 
|-  
|Descrição
+
| 201
|
+
| UserOrPasswordInvalid
 
|-  
 
|-  
|Tipo
+
| 202
|
+
| UserNotFound
 
|-  
 
|-  
|Botão Adicionar
+
| 203
|
+
| InactiveUser
 
|-  
 
|-  
|Botão Alterar
+
| 204
|
+
| InvalidToken
 
|-  
 
|-  
|Botão Excluir
+
| 205
|
+
| ExpiredToken
 +
|-
 +
| 206
 +
| AccessDenied
 +
|-
 +
| 207
 +
| SessionNotFound
 +
|-
 +
| 208
 +
| SessionIsClosed
 +
|-
 +
| 209
 +
| IPAddressMismatch
 +
|-
 +
| 999
 +
| Error
 
|}
 
|}
 +
  
 
=== Authenticate ===
 
=== Authenticate ===

Edição das 18h56min de 8 de fevereiro de 2017

Sobre

Web Service REST

Códigos de Retorno (Status)
Código Descrição
100 Sucess
201 UserOrPasswordInvalid
202 UserNotFound
203 InactiveUser
204 InvalidToken
205 ExpiredToken
206 AccessDenied
207 SessionNotFound
208 SessionIsClosed
209 IPAddressMismatch
999 Error


Authenticate

Serviço de autenticação de usuário. Passar no parâmetro requestToken o token gerado pelo serviço generateAuthResquestToken.

{
    "status": 100,
    "message": "Usuário autenticado.",
    "details": null,
    "authToken": "IkXuQxepET......",
    "authType": 1,
    "userProfile": {
        "id": 1,
        "referenceCode": null,
        "username": "admin",
        "fullName": "Administrador",
        "emailAddress": "",
        "isActive": true,
        "isAdmin": true,
        "isIntegratedUser": false,
        "keepAliveEnabled": true,
        "documentType": 0,
        "documentNumber": "",
        "policies": null,
        "extendedProperties": [
            {
                "Key": "CampoLivre1",
                "Value": null
            },
            {
                "Key": "CampoLivre2",
                "Value": null
            },
            {
                "Key": "CampoLivre3",
                "Value": null
            },
            {
                "Key": "CampoLivre4",
                "Value": null
            },
            {
                "Key": "CampoLivre5",
                "Value": null
            }
        ]
    }
}

ValidateAuthToken

EndSession

  • Verbo Http: GET
  • Template de URL: {latromiUrl}/Services/Authentication.svc/rest/endSession/{authToken}

ChangePassword