Skip to content

Commit

Permalink
Merge pull request #82 from f5devcentral/alfredo
Browse files Browse the repository at this point in the history
Alfredo
  • Loading branch information
vistola authored Apr 24, 2024
2 parents c93931d + 3fe63c0 commit f987a2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions docs/class4/module3/lab1/lab1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,26 @@ Enable JWT Access Control

* Save the rule

.. image:: ../pictures/sp-rules.png
:align: center
:scale: 70%
.. image:: ../pictures/sp-rules.png
:align: center
:scale: 70%

* Save your Service Policy

* Edit your HTTP LB, and assign this Service Policy

* Common Security Services > Service Policies > Apply Specified Service Policies

* Select your Service Policy names sp-jwt-access

* Go to ``Common Security Controls`` > ``Service Policies`` > Select ``Apply Specified Service Policies``

.. image:: ../pictures/common-security-controls.png
:align: center
:scale: 70%

* Click Configure for Policies and select your service policy sp-jwt-access

.. image:: ../pictures/service-policy.png
:align: center
:scale: 70%


Test JWT Access Control
^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -268,7 +276,7 @@ Test JWT Access Control
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 **doesn't** because the Role claim is not VP
* It **doesn't** pass because the Role claim is not VP

* Send a new request with the Role VP

Expand Down
Binary file modified docs/class4/module3/pictures/event-view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f987a2c

Please sign in to comment.