forked from roque86/bb-oauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger_oauth_client_credentials.json
More file actions
93 lines (93 loc) · 3.28 KB
/
swagger_oauth_client_credentials.json
File metadata and controls
93 lines (93 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"swagger": "2.0",
"info": {
"title": "Fluxo Client Credentials",
"version": "1.0.0"
},
"host": "oauth.bb.com.br",
"schemes": [
"https"
],
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/x-www-form-urlencoded"
],
"paths": {
"/oauth/token": {
"post": {
"parameters": [
{
"name": "grant_type",
"description": "Deverá ser informado: client_credentials",
"in": "formData",
"required": true,
"type": "string"
},
{
"name": "scope",
"description": "Os escopos deverão ser informados separados por espaço.",
"in": "formData",
"required": true,
"type": "string"
},
{
"name": "Content-Type",
"description": "Deverá ser informado: application/x-www-form-urlencoded\n",
"in": "header",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/RespostaToken"
},
"description": "Geração de Access Token"
}
}
},
"parameters": [
{
"name": "Authorization",
"description": "Deverá ser informado no padrão: Basic {Base64(client_id:client_secret)}",
"in": "header",
"required": true,
"type": "string"
},
{
"name": "Content-Type",
"description": "Deverá ser informado: application/x-www-form-urlencoded\n",
"in": "header",
"required": true,
"type": "string"
}
]
}
},
"definitions": {
"RespostaToken": {
"description": "",
"required": [
"access_token",
"token_type",
"expires_in"
],
"type": "object",
"properties": {
"access_token": {
"description": "Token de Acesso"
},
"token_type": {
"description": "Tipo de token"
},
"expires_in": {
"description": "Tempo de Expiração do token"
}
},
"example": "{\n \"access_token\": \"Yyr_4-0c2bgPhzbH60SkEmMuJO77DI9ZESN-vZBZ_hMK8BNMOAvlw.6en65sKd2itKfRwqKEr\n 7nZPbT6C4S6AglgqDtDwaUsBgHlbLFzjgZevTxnyv1Zjh0SZQNMTngzw1E60vJkPSJQXWOam2\n EylIQ_-j7lOfWjLiLX6zdBF-4BC_9r2IqA5EQhKS\\eZxkN17FcPTwaOpzsOb6tMxvmg6hWVpx\n YKMoye64go1VOtPZprBEnjdu3xZIhDFYWcKSfaGJDpcvNXczSQZoK7i19FZetvDa-QX9AO1NK\n SQVQXSj-uSK3OnwUQXZySBotR5B_IklGV5oyguUN7ZA3wUMZohhhMTRh9CavKEEG1sf1L8Ygk\n vTpTVQv7W9xKhCzqm8Oyy25JrmOaeeI0BYVREc83BitfNKAp3Gf-7mfS6YOit8LWbdfJxxrRA\n AIRGhRmCDjahPd_fiRMR4nr-lDi0LHtmlKWVWeswFKdOj1uKsJ8adqL18ksdKfZBJWXh0XFb4\n EALjmojkE6t0L_7zrwdNySonkqKotGVwbm3n5j5Eyleqc2O7J11Y2bljHbdLWk7vtUpHmhGEL\n zjK-N66iLIhDKZmQEZKILBskWCq5jeSC-ZfF1dkJML-4Jl3nB1DtbyKVlB6Sv65_kJ-qNOCfT\n aiifV03VcFvx6cM5qKFozintpvxq8ht8M0M.fxPC5LQXbBSE9WNnHVBGY1qKfGDodeLNI4-qg\n 4jP5hLKIfLGzOo43zmqiABAToVLZyj3oJACKk-tyGGovpFd4Q\",\n \"token_type\": \"Bearer\",\n \"expires_in\": 600\n}"
}
}
}