﻿WEBVTT

00:00:03.850 --> 00:00:06.490
So let's move on to the Joomla API

00:00:06.490 --> 00:00:06.990
setup.

00:00:07.130 --> 00:00:09.830
It says headless mode in Joomla 4 plus,

00:00:09.990 --> 00:00:11.850
obviously 5 and 6 still has it.

00:00:14.090 --> 00:00:16.150
So we need to ensure that we've got

00:00:16.150 --> 00:00:18.950
these plugins turned on, we've got the web

00:00:18.950 --> 00:00:21.750
services for content, we've got the web services

00:00:21.750 --> 00:00:24.770
for users, web services for categories as well,

00:00:25.450 --> 00:00:28.750
API authentication, web services and API authentication for

00:00:28.750 --> 00:00:29.470
the Joomla token.

00:00:30.050 --> 00:00:32.570
Incidentally, if you don't use the API, which

00:00:32.570 --> 00:00:33.970
I don't in a lot of my sites,

00:00:34.310 --> 00:00:36.310
I often turn these off just to make

00:00:36.310 --> 00:00:39.430
sure that nobody could connect to the API,

00:00:39.530 --> 00:00:40.810
because the API in Joomla is turned on

00:00:40.810 --> 00:00:44.610
by default and actually the users don't have

00:00:44.610 --> 00:00:46.090
tokens by default, I don't believe.

00:00:46.690 --> 00:00:49.930
But just say there was some bad coding

00:00:49.930 --> 00:00:51.890
somewhere, I would think that would be quite

00:00:51.890 --> 00:00:54.210
a big exposure, so I turn them off

00:00:54.210 --> 00:00:55.550
anyway.

00:00:58.590 --> 00:01:00.470
So yeah, we've got the API public and

00:01:00.470 --> 00:01:01.690
we've got the API admin.

00:01:02.490 --> 00:01:05.170
Really we're making a site here, I'm not

00:01:05.170 --> 00:01:08.130
planning on doing admin stuff as well in

00:01:08.130 --> 00:01:11.110
React, because that's what Joomla is for.

00:01:11.870 --> 00:01:13.670
But certainly there might be some admin stuff

00:01:13.670 --> 00:01:15.830
like logging in and making a blog or

00:01:15.830 --> 00:01:17.310
something like that might be something that you

00:01:17.310 --> 00:01:18.430
want front end users to do.

00:01:20.640 --> 00:01:21.940
So part is security.

00:01:22.280 --> 00:01:26.620
I know security is obviously very, very important.

00:01:26.880 --> 00:01:30.340
I know Joomla security team do an amazing

00:01:30.340 --> 00:01:33.220
job of keeping Joomla secure, and what I

00:01:33.220 --> 00:01:34.420
don't want to do is give you a

00:01:34.420 --> 00:01:36.540
wonderful talk now about an all singing, all

00:01:36.540 --> 00:01:40.720
dancing type of website, and it's not secure.

00:01:41.100 --> 00:01:42.460
So I'm going to talk through some of

00:01:42.460 --> 00:01:43.180
the considerations.

00:01:44.200 --> 00:01:47.440
So obviously a direct call, a browser with

00:01:47.440 --> 00:01:49.500
React with a token visible in a JavaScript

00:01:49.500 --> 00:01:53.880
file that anybody could explore in their console

00:01:53.880 --> 00:01:55.980
and see the Joomla API.