Authenticating the REST API

Hi all

I wrote http://drupangular.srgunltd.co.uk which uses AngularJS for the front-end. To post new content via the API I'm simply hardcoding the headers:

headers: {
     "Authorization": "Basic YWRtaW46MTIzcXdl", // encoded user/pass - this is admin/123qwe
}

I'm completely stuck on how to pass a dynamic auth here. It's like a trade secret or something. I simply want to check if a user is logged in - how can I do this??

Many thanks,
Matt

CacheableDependencyInterface & friends

To make dealing with cacheability metadata (cache tags, cache contexts and max-age) easier, Drupal 8 has CacheableDependencyInterface.

Problem if Drupal 6 or 7 not upgraded to 8

Hello ,

I am here to discuss, what problem I will face if I don't upgrade to Drupal 8.
I have a site build with D7. what issues i will face if I don't upgrade it to D8?

Please suggest.
Thanks.
Deborah Ferrari

Drupal\Core\Form\EnforcedResponseException when installing any module

Hey there,

I've set up an installation of Drupal 8.0.0-beta12. The setup worked fine without any problem. But when I try to install any new module the following error shows up:

Drupal\Core\Form\EnforcedResponseException: in Drupal\Core\Form\FormBuilder->buildForm() (line 296 of core/lib/Drupal/Core/Form/FormBuilder.php).

Do you have any ideas on this?

Thank you!

Custom CMS to Drupal 8

Hi!

For a while now I am planning to convert news portal from custom made CMS to Drupal 8. "Live" editing option was persuasive enough.

The site has a following structure:

Cache max-age

Cache max-age = time dependencies

Cache max-age is analogous to HTTP's Cache-Control header's max-age directive

Why?

Cache max-age provides a declarative way to create time-dependent caches.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x