Now, before anybody says 'theres already a module for that', let me point out that what I am trying to build is a special use case that doesn't quite fit into all the other modules I can piece together to make work, so let me explain.
I am working on a management system where users can store addresses in a personal address book. Simple enough, right?
Sure, but to go beyond that, there is other functionality that I need to build, and was wondering how best to approach it.
I have a field in a content type called 'field_news_image' and in is an entry reference field type. I'm trying to find the appropriae token to use in the Metatag module for an og:image meta tag on the content type, but nothing I've tried seems to output a complete URL (absolute).
I have a folder 'user-pictures' inside the public files folder. On the website, there is a 'large' and a 'thumbnail' image style, where the large one is only accessible for authorized user, while the thumbnail is public. However, these images (all image styles and originals) are all accessible in the files folder. Note that these images are not sensible data, but still i was wondering if i can minimize the access.
I have created a API endpoint in drupal which validates the session and redirects to particluar page. I need to consume this API from another application. But my drupal app has MFA protected, which genertes an unique cookie for every session after successfull authentication.
So Everytime if I try to consume my API, got MFA login page as respone with http code 303 redirect. If generated unique Cookie is sent in header, I got the actual response.