Commit Graph

23 Commits

Author SHA1 Message Date
Ruwann
85058ed3f1 Rework required_scopes checking (#1474)
* WIP: rework required_scopes checking

* Update tests for security scopes

* Add test for oauth security scheme with multiple possible scopes

* Update security tests

* Change optional auth test to correct behaviour

* Update security documentation

* Remove TODOs

* Catch possible exceptions from failed checks in async security factory

* Add .venv/ to gitignore

* Try to raise most specific exception

* Add test for raising most specific error

* Update async security handler factory

* Fix security handler error catching

* Fix imports order
2022-03-21 21:31:26 +01:00
Andrey Abramov
87a0fed4dc Remove obsolete code from basicauth example (#1486)
* Remove obsolete code

* Remove scopes completely

* Add hinting

* Remove outdated function from docs/security

* Revert "Add hinting"

This reverts commit faeea24c28bf88eead4015feea8f4dbd750cec1c.

* Change README for examples and other review fixes
2022-03-16 20:20:44 +01:00
soof-golan
2dfd57dafb Replace links of master in favor of main (#1421)
Replace links referring to the ``master`` branch in favor of ``main``
2021-09-02 10:46:43 +02:00
Ruwann
3195bec4e3 Add support for multiple security schemes in AND fashion (#1290)
* Add support for multiple security schemes in AND fashion

* Add test for operation with multiple security schemes combined using logical AND

* Add test for multiple oauth combined using logical AND
2021-07-16 08:46:15 +02:00
KarelChanivecky
51a3c84a59 Update security.rst (#1339)
Hi guys. There was a chunk of information missing from this page that was present in the main github readme, so I propose adding it here.
2021-06-24 14:04:31 +02:00
Jiehong
a21dd62b82 doc: improve documentation for Basic Auth 2020-07-20 07:20:37 +02:00
Qasim Albaqali
7e08135f57 Fix typo in security.rst from of to an or (#1158)
* Fix typo in security.rst from of to an or

Changed `of` to an `or`, I guessed a Dutch person wrote this and noticed it's one of the biggest gotchas to see if a Dutchie is the author.

* Changed 'of' to 'with a value of'
2020-04-23 23:12:54 +02:00
Mikko Nylén
0022e7f93e Document token_info argument (#1212)
Fixes #1188
2020-04-23 23:01:56 +02:00
Eugene Fabrikant
6f600234fe Updated API Key example link to correct location (#1089)
* Updated API Key example link to correct location

* Fixed example href location per PR feedback
2019-12-03 22:03:01 +01:00
rgmerk
c94fa6127a Instructions for deploying on modwsgi (#1018) 2019-10-18 12:41:39 +02:00
Spencer Herzberg
0989a93df5 fixes basic auth example doc; adds apikey example (#894)
* fixes basic auth example doc; adds apikey example

* remove required_scopes references that dont pertain to apikey
2019-03-11 08:22:37 +01:00
krise3k
2fc255f86d Fix link to example in JWT docs (#776)
Fix not working link to example in JWT docs.
2018-11-13 13:38:30 +01:00
krise3k
6ec11825b8 Add support for JWT authentication (#732)
* Add support for JWT

* Add example for JWT

* Add minimal JWT documentation
2018-11-12 08:53:50 +01:00
João Santos
44ea9336fe Connexion 2.0 (#619)
- App and Api options must be provided through the "options" argument (``old_style_options`` have been removed).
- You must specify a form content-type in 'consumes' in order to consume form data.
- The `Operation` interface has been formalized in the `AbstractOperation` class.
- The `Operation` class has been renamed to `Swagger2Operation`.
- Array parameter deserialization now follows the Swagger 2.0 spec more closely.
  In situations when a query parameter is passed multiple times, and the collectionFormat is either csv or pipes, the right-most value will be used.
  For example, `?q=1,2,3&q=4,5,6` will result in `q = [4, 5, 6]`.
  The old behavior is available by setting the collectionFormat to `multi`, or by importing `decorators.uri_parsing.AlwaysMultiURIParser` and passing `parser_class=AlwaysMultiURIParser` to your Api.
- The spec validator library has changed from `swagger-spec-validator` to `openapi-spec-validator`.
- Errors that previously raised `SwaggerValidationError` now raise the `InvalidSpecification` exception.
  All spec validation errors should be wrapped with `InvalidSpecification`.
- Support for nullable/x-nullable, readOnly and writeOnly/x-writeOnly has been added to the standard json schema validator.
- Custom validators can now be specified on api level (instead of app level).
- Added support for basic authentication and apikey authentication
- If unsupported security requirements are defined or ``x-tokenInfoFunc``/``x-tokenInfoUrl`` is missing, connexion now denies requests instead of allowing access without security-check.
- Accessing ``connexion.request.user`` / ``flask.request.user`` is no longer supported, use ``connexion.context['user']`` instead
2018-11-05 14:50:42 +01:00
Zach Bloomquist
1fbb1ff941 Clarify the x-tokenInfoFunc interface (#609) 2018-06-28 07:37:53 +02:00
Henning Jacobs
4486438e70 run tests against PyPI dependencies for release (#561)
* run tests against PyPI dependencies for release

* fix docs format
2018-01-13 19:57:28 +01:00
Maico Timmerman
546782a8d6 Updated docs and README 2018-01-10 23:05:44 +01:00
Henning Jacobs
d9edc36647 Ignore context args (#429)
* #428 add unit test

* #428 ignore context param if not in function args

* #428 update OAuth2 example app

* #428 update security docs
2017-04-05 14:32:40 +02:00
Henning Jacobs
15586f01e8 document flask.request.user 2016-06-16 18:00:02 +02:00
João Santos
28705757c2 #167 Updated security documentation 2016-03-04 13:19:51 +01:00
João Santos
404fb87d3c #167 Include https information in the docs 2016-03-04 13:17:41 +01:00
João Santos
8b58b55fa0 #69 Update Documentation 2015-10-02 09:11:51 +02:00
João Santos
345ed84924 https://github.com/zalando/connexion/issues/11 Some documentation 2015-06-17 14:12:08 +02:00