Skip to content

Commit

Permalink
class4
Browse files Browse the repository at this point in the history
  • Loading branch information
vistola committed Apr 24, 2024
1 parent b8d4339 commit dd9763d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/class4/module1/lab2/lab2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ In this lab, we will create an ``API Protection rule`` to enforce and allow only
.. note:: As a reminder, the endpoint ``/colors`` is not defined in the OAS file, and the base path is ``/api/``

#. Edit your "sentence-re-lb" application LB
#. Go to ``API Protection`` - ``API Protection Rules``
#. Go to ``API Protection`` - ``API Protection Rules`` and click ``configure``

.. image:: ../pictures/api-protection-rule1.png
.. image:: ../pictures/api-protection-rules.png
:align: center
:scale: 70%
:scale: 50%

#. Click on ``Configure in Server URLs and API Groups`` and create the following two rules. Don't forget to click on ``Apply``

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/class4/module1/pictures/deny-unknown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/class4/module3/lab1/lab1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ Test your configuration with Postman
* It **doesn't** pass because JWT validation is enabled on /locations

* Send the request below (with JWT) to /api/animals.
* Send the request below (with JWT) to /api/locations.

.. code-block:: bash
curl -H "Content-Type: application/json;charset=UTF-8" --location 'http://sentence-re-$$makeId$$.workshop.emea.f5se.com/api/locations' --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJGNVhDIEpXVCBkZW1vIiwic3ViIjoic2FAZjUuY29tIiwiYXVkIjoibXlsYi1mNXhjLmY1c2UuY29tIiwiaWF0IjoxNzEzNTM4NTAxLCJleHAiOjE3MTM1MzkxMDEsIkdpdmVuTmFtZSI6IkJvYiIsIkxhc3ROYW1lIjoiVGhlU3BvbmdlIiwiRW1haWwiOiJib2JAZjUuY29tIiwiUm9sZSI6IlNBIn0.bz6XTCLN6Nioz56pzs8nJTJ4OExkNsYNiGmHa23BEbcWRA4O3UFPBfII110yd4l2wbYuaaWbEWXZLkkqRb-0LJHyOMg1TvI15HZKvwqVN7nj4g-qtSpfnrmd4w2pAyRvMeqxt_r2apAzmyjvTrwFamxKtZ9IDhQ7CB1O8XsT0yJB2lpU9tS09PrM3kJNbbr5yzgVCk1eSOGE0Uh7qhcgrnDqpHcGVd0pm_Z2R-mZH-DMN99jwcgrFlOW28XYo9YWodHpwBAe3ZxWqnxDjIberk55EkfqlEPaFj6GK2IyzEsLbazMQuQB2meKeaPPsmcVeT9E7BAK_6aBZuA3mZwL-Q'
* It **passes** because JWT is valid (signature is valid)

* Send the same request, but with a wrong JWT signature. As a reminder, the JWT signature is the last section of the JWT. We intentionally remove some characters from the signature section of the JWT.
* Send the same request, but this time with a wrong JWT signature. As a reminder, the JWT signature is the last section of the JWT. We intentionally remove some characters from the signature section of the JWT.

.. code-block:: bash
Expand Down

0 comments on commit dd9763d

Please sign in to comment.