Overview
This is a memo about trying Cantaloupe’s Access Control.
https://cantaloupe-project.github.io/manual/5.0/access-control.html
Bearer Authentication
I referenced the following.
https://cantaloupe-project.github.io/manual/5.0/access-control.html#Tiered Access
All or Nothing Access
This returns an error when the authentication information is incorrect.
I configured it so that images are returned when the token is test, as shown below.
I created a Google Colab notebook to verify the above behavior.
The results show that when the token is correct, images can be retrieved, and when the token is incorrect or not provided, images cannot be retrieved.

Login with Degraded Access for Unauthenticated Users
The iiif-auth-server provides an example of login with degraded access for unauthenticated users, and I tried to reproduce it in Cantaloupe.
https://github.com/digirati-co-uk/iiif-auth-server
Specifically, when authentication information is incorrect, a grayscale image is returned. There may be some errors, but I prepared the following script.
The Google Colab execution results are shown below. Unauthenticated users receive a grayscale image, while authenticated users receive a color image.

Summary
I would like to use the above features to attempt implementing the IIIF Authentication API.