Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 940 Bytes

05.authentication.md

File metadata and controls

28 lines (23 loc) · 940 Bytes

Authentication

If user authentication is required, the server can enforce credentials checks before any action is taken.

See Security Configuration Settings

For convenience all the provided postman endpoints are configured to automatically authenticate the user. When testing the download signed URL, you will need to include the auto-authentication script as seen in the following screenshot:

postman authorization

pm.sendRequest({
    url: "http://localhost:8080/auth/token/create",
    method: 'POST',
    header: {
        'Authorization': 'Basic ' + btoa('admin:admin')
    }
}, function (err, response) {
    if (!err) {
        token = response.stream.toString()
        pm.request.headers.add({
            key: 'Authorization',
            value: 'Bearer ' + token
        });
    }
});