Table of Contents

Search

  1. Preface
  2. Introduction to REST V2 Connector
  3. Connections for REST V2
  4. REST V2 operations
  5. Mappings and mapping tasks with REST V2 Connector
  6. Swagger File Generation
  7. Appendix A: Swagger objects
  8. OpenAPI objects

REST V2 Connector

REST V2 Connector

Parsing security definitions

Parsing security definitions

You can define security definitions when you perform an operation on a REST API endpoint.
Define the
securityDefinitions
input parameter in the swagger file and call the security definitions in an operation. You can use only the basic and apiKey security definitions types with the
securityDefinitions
parameter.
Defining securityDefinitions
...
"security": [{"type": [],"id": [],"basic_key": []}]
}
}
},
"securityDefinitions": {
"type": {
"type": "apiKey",
"name": "type",
"in": "query",
"default":"json"
},
"id": {
"type": "apiKey",
"name": "id",
"in": "query"
},
"basic_key": {
"type": "basic",
"name": "basicAuth",
"in": "header"
}
}
If you want to connect to a web service that uses OAUTH version 2.0, provide the values of authentication details as custom header fields or query parameters in a request message.

0 COMMENTS

We’d like to hear from you!