auth

Authentication model

clink.model.auth.post_token_pwd = {'type': 'object', 'required': ['grant_type', 'username', 'password'], 'properties': {'username': {'type': 'string', 'pattern': '^[a-z0-9-]{2,32}$'}, 'password': {'type': 'string', 'pattern': '^.{6,32}$'}, 'grant_type': {'type': 'string', 'pattern': '^password$'}}}
clink.model.auth.post_token_rtoken = {'type': 'object', 'required': ['grant_type', 'refresh_token'], 'properties': {'refresh_token': {'type': 'string'}, 'grant_type': {'type': 'string', 'pattern': '^refresh_token$'}}}
clink.model.auth.res_bearer_token = {'type': 'object', 'required': ['token_type', 'expires_in', 'access_token', 'refresh_token'], 'properties': {'refresh_token': {'type': 'string'}, 'access_token': {'type': 'string'}, 'expires_in': {'type': 'number'}, 'token_type': {'type': 'string', 'pattern': 'Bearer'}}}