[DOCU-2233] show a security scheme example - rest clients Created: 26/Aug/21  Updated: 30/Aug/21  Resolved: 30/Aug/21

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Support Request Priority: Neutral
Reporter: Richard Gange Assignee: Martin DrĂ¡pela
Resolution: Done Votes: 0
Labels: services
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:

 Description   

It would be really helpful to see an example of a configuration before itemizing the configuration in a table. Its a bit difficult to visualize the layers of it with out a concrete example.

https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/REST-Client-module.html#_security_scheme

Here is my example:

baseUrl: http://localhost:8080/magnoliaPublic
securitySchemes: # define one or more schemes
  basic: 
    $type: basic
    username: superuser
    password: superuser
restCalls: 
  myCommand: 
    method: post
    entityClass: com.fasterxml.jackson.databind.JsonNode
    path: /.rest/commands/v2/myCatalog/myCommand
    securityScheme: basic # set the scheme for the call

Generated at Mon Feb 12 01:25:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.