I am trying to get flow Oauth2 generic to connect to an API which uses Authorization Code Grant RFC 6749.
The authorization works fine and the initial connection is made. But the token pass off does not work.
Can a custom connection from flow work with Authorization Code Grant. This spec says "The client makes a request to the token endpoint by sending the following parameters using the "application/x-www-form-urlencoded" format per Appendix B with a character encoding of UTF-8 in the HTTP request entity-body: "
This is so close to working, I have tried everything I can think of to make this work. Can it be done? If so what am I not doing correctly.
{
"swagger": "2.0",
"info": {
"description": "...........
"version": "0.1",
"title": "flow"
},
"host": "######################.com",
"basePath": "/webresources/api/v3/sites/current",
"schemes": [
"https"
],
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"paths": {
"/faqs": {
"post": {
"tags": [
"FAQs"
],
"summary": "FAQs Create",
"description": "Using this method you can add an FAQ item to your site.\n",
"operationId": "AddFAQ",
"parameters": [
{
"name": "id",
"in": "query",
"description": "id identifier number",
"required": true,
"type": "integer"
},
{.....
"securityDefinitions": {
"oauth2": {
"type": "oauth2",
"authorizationUrl": "https://........com/api/oauth/authorize%3fversion%3D0.1",
"tokenUrl": "https://.........com/api/oauth/token",
"flow": "accessCode",
"scopes": {}
}
},
"security": [
{
"oauth2": []
}
],
"tags": []
}Json above is shorted to keep it brief.
Sorry this is in the wrong thread Board but now I cannot change it.
Any help would be great.