Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

JSON Configuration

Below, is an example JSONĀ JSON showing how a configuration used to aquire a token from the Microsoft login service could look for a tenant "abcdefg123456".


Code Block
languagejs
{
    "class": "io.ceptor.pipeline.tasks.OAuth2TokenTask",
    "description": "Acquire OAuth2 token for calls to a backend service",
    "endpoint": "https://login.microsoftonline.com/abcdefg123456/oauth2/token"
    "timeout": 5,
    "clientid": "abcdefg-123456-abcdefg-123456",
    "secret": "KHFNFWNF8768OWPFOIMWPOWf9/O=",
    "target.requestheader": true,
    "claims": [{
        "name": "resource",
        "value": "https://graph.microsoft.com"
    }],
}

...