Testing IIIF Authentication API 2.0

概要 I had the opportunity to test IIIF Authentication API 2.0, so here are my notes. https://iiif.io/api/auth/2.0/ I created the following demo site. https://iiif-auth-nextjs.vercel.app/ja The repository is as follows. https://github.com/nakamura196/iiif-auth-nextjs Below is an AI-generated explanation. Note that I was unable to get it working properly with Mirador, which remains a future task. 概要 This article provides a detailed explanation of the IIIF Authentication API 2.0 authentication flow at the level of actual HTTP requests/responses. We will trace what requests are sent and what responses are returned at each step. ...

July 25, 2025 · 55 min · Nakamura

Trying the Drupal JSON Web Token Authentication Module

Overview I will try the Drupal JSON Web Token Authentication module. https://www.drupal.org/project/jwt I referenced the following page. https://preston.so/writing/decoupled-drupal-authentication-with-json-web-tokens/ Note that the following is a similar module. https://www.drupal.org/project/rest_api_authentication JWT authentication using the above module is described here. https://www.drupal.org/docs/contributed-modules/api-authentication/jwt-authentication However, as described in the following article, it appears that using JWT authentication with the above module requires a paid plan. Therefore, this time I will try the jwt module instead. Installation and Activation jwt module ...

December 31, 2023 · 13 min · Nakamura

Investigation of the Drupal REST & JSON API Authentication Module

Overview I will try JWT authentication, referencing the following article. https://www.drupal.org/docs/contributed-modules/api-authentication/jwt-authentication However, after trying it, it appeared that a paid plan subscription was required to use JWT authentication, and the investigation stopped there. Prerequisite: Download and Installation Install and enable the following two modules. https://www.drupal.org/project/rest_api_authentication https://www.drupal.org/project/restui c c v o o e m m n p p d o o o s s r e e / r r b . . i p p n h h / a a d r r r u r r s e e h q q u u e i i n r r e e r e ' ' s d d t r r _ u u a p p p a a i l l _ / / a r r u e e t s s h t t e _ u n a i t p : i i ^ c _ 1 a a . t u 2 i t 1 o h ' n e n t i c a t i o n : ^ 2 . 0 ' Steps to Configure JWT-Based API Authentication Follow the instructions below to enable the API and set up JWT-based API authentication. ...

December 31, 2023 · 2 min · Nakamura

Using JWT in Django (djangorestframework-simplejwt)

Overview I wanted to use JWT with Django, so I tried djangorestframework-jwt. https://github.com/jpadilla/django-rest-framework-jwt I followed the instructions on the following site. https://dev-yakuza.posstree.com/django/jwt/ However, when I added 'rest_framework_jwt.authentication.JSONWebTokenAuthentication', the following error occurred. I m p o r t E r r o r : c a n n o t i m p o r t n a m e ' s m a r t _ t e x t ' f r o m ' d j a n g o . u t i l s . e n c o d i n g ' Upon investigation, I found the following article. ...

June 17, 2023 · 1 min · Nakamura