Currently used token: 011cc6b2b13c8606cbfb30b20072e50218926042

OAuth2.0 Test Application

Welcome to the OAuth2.0 Test Application! This is an application that demos the OAuth2.0 Workflow.



1. Retrive authorization code.
To retrieve authorization code you have to make the following POST request. The request will callback your redirect_uri with parameters code and state;


http://api.bonapeti.bg/authorize with following parameters:

- response_type = code;
- client_id = <client_id_for_your_application>; (provided by OAuth provider)
- redirect_uri = <redirect_uri_for_your_application>; (have to be sent by you to the OAuth provider and to be set);
- state = <unique_string>; (will be returned by a callback).
- scope = <scope_name>; 
(scopes:
http://bonapeti.bg/scope/customer (for client token),
http://bonapeti.bg/scope/account (for account token)
)


Response type:
Client ID:
Redirect URI:
State:
Scope: