API-Documentation - Login

Login

This module contain all login functions

Function overview

login Create login session.
login Create login session for client
login - Create login session.post

Generates a JWT token and creates a login session.

Url

/service/login

Parameter

Field Type Description
token String

public token

authid String

of your customer profile

Request-Example

{
  "token": "9a9a9a",
  "authid": "8b8b8b"
}

Success parameter

Field Type Description
token token

token for this session

refreshToken refreshToken

refreshToken for this session

info String

informations about login state

id Integer

id of your customer profile

HTTP/1.1 200 OK
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ",
  "refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ",
  "info": "login success",
  "id": 1234
}
login - Create login session for clientpost

Generates a JWT token and create a login session for client, the client is binded to the parent customer

Url

/service/client/login

Parameter

Field Type Description
ip String

ip of client

useragent String

useragent of client

Request-Example

{
  "ip": "9a9a9a",
  "useragent": "8b8b8b"
}

Success parameter

Field Type Description
token token

token for this session

refreshToken refreshToken

refreshToken for this session

info String

informations about login state

id Integer

id of your customer profile

HTTP/1.1 200 OK
{
  "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ",
  "refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ",
  "info": "login success",
  "id": 1234
}

© 2021 Vinou GmbH, Mombacher Straße 68, 55122 Mainz, Germany