Skip to content

Authorization to Kurjun

Abdysamat Mamutov edited this page Mar 25, 2016 · 1 revision

You need to authorize in order to use private Kurjun repositories.

1. Check if you have already registered:

Method: GET

URL: http://your-host:port/kurjun/rest/identity/user/get?

Return: User info if exists, 'not found' if not registered yet.

Params:

Name Value
fingerprint fingerprint of your PGP public key

2. Register new user:

Method: POST

URL: http://your-host:port/kurjun/rest/identity/user/add?

Return: AuthID string, you need to 'clearsign' this AuthID with your PGP secret key and post it during authorization.

Params:

Name Value
key ASCII armored PGP public key

3. Authorize to system:

Method: POST

URL: http://your-host:port/kurjun/rest/identity/user/auth?

Return: Token, which you will use in every request to Kurjun REST API.

Params:

Name Value
fingerprint fingerprint of your PGP public key
message signed AuthID, from previous step
Clone this wiki locally