In order to make an api call you must register your application at the following url: https://bonline.bog.ge/admin/api/ During registration you should specify your application name, application name in English and a logo url. (preferably using https protocol and not larger 400x80 pixels). If you app is a web app you should also specify redirect url where you will be redirected during authentication. After registration on the app details page you will see application client id, redirect uri and client secret (only in case of web app) which you will need to perform authentication request.
For desktop applications authentication happens using the following scheme:
https://account.bog.ge/auth/realms/bog/protocol/openid-connect/auth?client_id=implicitclient&response_type=token&scope=corp&redirect_uri=https%3A%2F%2Fexample.com%3A44312%2Fcallback&state=e46fcdf4-a4bf-4dc6-8a42-e1b12e27826b&kc_locale=ka
Authorization
Header like this:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc..........
Web application authentication happens using the following scheme:
https://account.bog.ge/auth/realms/bog/protocol/openid-connect/auth?client_id=codeclient&response_type=code&scope=corp&redirect_uri=https%3A%2F%2Fexample.com%3A44312%2Fcallback
Authorization
Header and use your application client_id as a username and use your application client secret as a password.
Authorization
Header like this:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc..........
Token authentication happens using the following scheme:
Send POST request to the following address: https://account.bog.ge/auth/realms/bog/protocol/openid-connect/token with these parameters in request body and application/x-www-form-urlencoded Content-Type:
Authorization
Header and use your application client_id as a username and use your application client secret as a password.
Authorization
Header like this:
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImEzck1VZ01Gdjl0UGNsTGE2eUYzekFrZnF1RSJ9.eyJpc..........