https://cerbos.dev logo
#help
Title
# help
b

Balwan singh

09/27/2023, 7:07 AM
how to get authorization token for admin api ?
j

Jesum Yip

09/27/2023, 7:16 AM
o

oguzhan

09/27/2023, 7:16 AM
Hi, It is possible to configure
username
and
password
for Admin API. Please see https://docs.cerbos.dev/cerbos/latest/configuration/server#admin-api The default username is
cerbos
, and the password is
cerbosAdmin
.
b

Balwan singh

09/27/2023, 7:21 AM
i want authorization token where i see authorization token ? any api for get authorization token ?
o

oguzhan

09/27/2023, 7:24 AM
You could use it like this in Postman
or
Copy code
$ echo -n "cerbos:cerbosAdmin"|base64

Y2VyYm9zOmNlcmJvc0FkbWlu
Then set
Authorization
header to this;
Copy code
Basic Y2VyYm9zOmNlcmJvc0FkbWlu
b

Balwan singh

09/27/2023, 7:29 AM
what is url and method for above postman?
j

Jesum Yip

09/27/2023, 7:30 AM
@Balwan singh this is using Basic auth scheme. https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#restricting_access_with_apache_and_basic_authentication in this scheme, you take <username> then put a
:
then put <password> then base64 encode the whole string. You then pass it to the REST API endpoint via the Authorization: Basic header.
b

Balwan singh

09/27/2023, 7:38 AM
thank you so much😊
2 Views