Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 478 Bytes

security.md

File metadata and controls

6 lines (4 loc) · 478 Bytes

Holder/Dispatcher for user-provided authorization info. Initialize this object like Security(app), where app is an instance of App. To add authorization, call Security.update_with(name, token), where name is the name of Authorizations object in Swagger 1.2(Security Scheme Object in Swagger 2.0) , and token is different for different kinds of authorizations:

  • basic authorization: (username, password)
  • api key: the api key
  • oauth2: the access_token