change query param refresh token to body request
This commit is contained in:
No files matched your search
+17
-4
@@ -512,11 +512,13 @@ const docTemplate = `{
|
||||
"summary": "Requesting new token to keycloak using refresh token",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Valid Refresh Token",
|
||||
"name": "refresh_token",
|
||||
"in": "query",
|
||||
"required": true
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/keycloak.RefreshTokenRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1276,6 +1278,17 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"keycloak.RefreshTokenRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"refresh_token"
|
||||
],
|
||||
"properties": {
|
||||
"refresh_token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pasien.PasienResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
+17
-4
@@ -506,11 +506,13 @@
|
||||
"summary": "Requesting new token to keycloak using refresh token",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Valid Refresh Token",
|
||||
"name": "refresh_token",
|
||||
"in": "query",
|
||||
"required": true
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/keycloak.RefreshTokenRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -1270,6 +1272,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"keycloak.RefreshTokenRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"refresh_token"
|
||||
],
|
||||
"properties": {
|
||||
"refresh_token": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pasien.PasienResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
+11
-3
@@ -325,6 +325,13 @@ definitions:
|
||||
- published
|
||||
type: string
|
||||
type: object
|
||||
keycloak.RefreshTokenRequest:
|
||||
properties:
|
||||
refresh_token:
|
||||
type: string
|
||||
required:
|
||||
- refresh_token
|
||||
type: object
|
||||
pasien.PasienResponse:
|
||||
properties:
|
||||
alamat:
|
||||
@@ -749,10 +756,11 @@ paths:
|
||||
post:
|
||||
parameters:
|
||||
- description: Valid Refresh Token
|
||||
in: query
|
||||
name: refresh_token
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
type: string
|
||||
schema:
|
||||
$ref: '#/definitions/keycloak.RefreshTokenRequest'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
|
||||
Reference in New Issue
Block a user