-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* using oauth and openapi
- Loading branch information
Showing
73 changed files
with
2,124 additions
and
2,225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../environment.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip install -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mxfile userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Atom/1.38.2 Chrome/61.0.3163.100 Electron/2.0.18 Safari/537.36" version="9.1.0" editor="www.draw.io" type="device"><diagram id="6b31b2c4-f107-957b-7422-773966168f4d" name="Page-1">7Zpdc9o4FIZ/DTO7N4xsYdlcAiXZzjYTp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aAc34H3C8bcAiBWmp6c8ghp57lugw6ZMiSbzsq/EhV1yAryUpld/M5lXzZi5oyqbDXqMqQtckQGEo6yLI9HumGFQ2CNNCbpFA1+CtqqB445xYusKYl7Qbh0nhwZZ/j4AoY0KZ7tUtxbJbD6uBDrlOdhVCWNNTUs9H3zxPF+Q6Ha5qdl9Q7Tee3N1nRbbb9TQ5+zPBj1t7v919Xk5+sc7s4XQk5Dqi8KItkLEsc1EWlWI2kpgNpCzVEkqF93hRKZqWYbfpJrNbfJbcLVfEGiAZcz7NxqnDcC5Yn0Pyy4IEsVBKWr1u10z82Gse7Ihr3nFLtnWuuRgHVitSpmgqerXJsGKq7yhGaZ9s8PdVWmqrh5aq+a1Ffej+ShtfzOxVbZ9jAqJZbLcfcwW5XCmpoICJ7KXPV10V1AlIORx+RD6wLkwY+XSncfHP+roVPrYWvkLchrNfCMD9FeW0tDG2zFm73CpCuwYdSt7XqsHlh0uaT9KSLkM3GbPlakJfF//Zk3Yt/oILT/wE=</diagram></mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,73 @@ | ||
.. toctree:: | ||
:hidden: | ||
|
||
.. _api: | ||
|
||
************************* | ||
XML-RPC API Documentation | ||
************************* | ||
############# | ||
API Reference | ||
############# | ||
|
||
.. contents:: | ||
:local: | ||
:depth: 2 | ||
:depth: 1 | ||
|
||
.. automodule:: twitcher | ||
|
||
Twitcher Client | ||
=============== | ||
|
||
.. autoclass:: twitcher.client.TwitcherService | ||
:members: | ||
:undoc-members: | ||
|
||
Twitcher CLI | ||
============ | ||
|
||
.. automodule:: twitcher.scripts.twitcherctl | ||
:members: | ||
|
||
.. _openapi_api: | ||
|
||
OpenAPI interface | ||
================= | ||
|
||
.. autoclass:: twitcher.api.TwitcherAPI | ||
:members: | ||
|
||
.. _oauth2_api: | ||
|
||
OAuth2 Tokens | ||
============= | ||
|
||
.. automodule:: twitcher.oauth2 | ||
:members: | ||
|
||
.. autoclass:: twitcher.oauth2.RandomTokenValidator | ||
:members: | ||
|
||
.. autoclass:: twitcher.oauth2.SignedTokenValidator | ||
:members: | ||
|
||
.. autoclass:: twitcher.oauth2.CustomTokenValidator | ||
:members: | ||
|
||
To use the XML-RPC interface, connect to twitcher’s HTTP port with any XML-RPC client library and run commands against it. | ||
An example of doing this using Python’s ``xmlrpclib`` client library is as follows. | ||
.. _ows_security_api: | ||
|
||
.. code-block:: python | ||
OWS Security | ||
============ | ||
|
||
import xmlrpc.client as xmlrpclib | ||
server = xmlrpclib.Server('http://localhost:8000/RPC2') | ||
.. autoclass:: twitcher.owssecurity.OWSSecurity | ||
:members: | ||
|
||
.. warning:: | ||
.. _ows_registry_api: | ||
|
||
When accessing the default HTTPS service you need to deactivate SSL verfication. | ||
See ``twitcher/client.py`` how this can be done. You may also use the following code:: | ||
OWS Registry | ||
============ | ||
|
||
>> from twitcher import client | ||
>> server = client._create_server('https://localhost:8000/RPC2', verify_ssl=False) | ||
.. autoclass:: twitcher.owsregistry.OWSRegistry | ||
:members: | ||
|
||
The `XML-RPC <http://xmlrpc.scripting.com/>`_ interface can also be accessed from Java and other languages. | ||
.. _ows_proxy_api: | ||
|
||
See the ``twitcher/rpcinterface.py`` module for the available xmlrpc methods: | ||
OWS Proxy | ||
========= | ||
|
||
.. autoclass:: twitcher.rpcinterface.RPCInterface | ||
:members: | ||
.. automodule:: twitcher.owsproxy | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
installation | ||
configuration | ||
dev_guide | ||
running | ||
tutorial | ||
api | ||
changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
071f38c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cehbrecht, I have just been informed of a breaking change for us introduced in the 0.6.x. If you rembember, we created an adapter for our PAVICS Auth service named Magpie and this component makes use of a couple of interfaces like the old ServiceStoreInterface (see : https://github.com/Ouranosinc/Magpie/blob/master/magpie/adapter/magpieservice.py). We understand that we cannot freeze all the interfaces for good, but we (CRIM: me and @fmigneault and Ouranos: @huard and @tlvu) would like to be informed in the future if you plan other changes on the interfaces so that we can be better prepared and maybe advise on them. For the meantime, we will stick around a little bit with the 0.5.x versions until we got time to bring back Magpie adapter to the 0.6.x version. Thank you.