Basic understanding of Oauth and REST. We suggest to view this video as a demo how to access data before proceeding. Postman is a handy tool, but Curl works too. Please check the Chapter 5 - Postman Collection of this page, we have created a ready Postman collection you can use to get an easty start.
Contrasec has created a demo environment where to test the RBAC solution. Here is a step by step how to get a Keyrock Account:
- Navigate to accounts: https://accounts.odala-rbac.cinfra.fi/sign_up/ sign up for a new account. The email sending has been disabled for security.
- Send an email to [email protected] and he will activate your account. This may take a working day or two.
-
Once you have received email confirmation that your email has been activated from [email protected], you can login via https://accounts.odala-rbac.cinfra.fi/ . Here is how successful login should look like:
-
Access token is needed to query data. You need to get the following details in order to get the access token:
clientid
,client secret
,username
(=email) of your Keyrock account andpassword
of your Keyrock account.clientid
is4f10e33d-697c-4c5a-95d9-4c6b60a0179f
for Contrasec test application, and you can get those from Keyrock also from the Application details. Clict the "Orion RBAC" application and expand the "Oauth2 Credentials" selector: -
Send the following request via Postman. Copy the
clientid
andclient secret
to the "username" and "password" fields of Postman:Insert the username and password details. Set
grant_type
as "password":access_token
is in the response, copy that for later use. -
Create the following request with Postman:
response that you should get is:
You are done! If you run into trouble, please create an issue to this repo or send email to [email protected]
At this time we do not allow pushing of data. This is strictly to minimize maintenance effort from our side.
Is available for download. With the collection you can easily test the system.
Nothing yet! When something is wrong, please create an issue.
curl --location --request POST 'https://accounts.odala-rbac.cinfra.fi/oauth2/token' \
--header 'Authorization: Basic NG....NzU4OWZiNWQ2Ng==' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=password' \
--data-urlencode '[email protected]' \
--data-urlencode 'password=pass'
curl --location --request GET 'https://orion.odala-rbac.cinfra.fi/v2/entities/' \
--header 'Authorization: Bearer 91ff..b732ac47'