Spring Security · Example Payload

Spring Security Issue Token Example

Example of issuing an OAuth2 access token using the client_credentials grant type

AuthenticationAuthorizationJavaJWTOpenID ConnectSAMLSecuritySpring Framework

Spring Security Issue Token Example is an example object payload from Spring Security, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

exampledescriptionrequestresponse

Example Payload

Raw ↑
{
  "example": "Issue OAuth2 Token - Client Credentials",
  "description": "Example of issuing an OAuth2 access token using the client_credentials grant type",
  "request": {
    "method": "POST",
    "url": "http://localhost:9000/oauth2/token",
    "headers": {
      "Content-Type": "application/x-www-form-urlencoded",
      "Authorization": "Basic bXktY2xpZW50Om15LXNlY3JldA=="
    },
    "body": "grant_type=client_credentials&scope=read+write"
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json;charset=UTF-8",
      "Cache-Control": "no-store"
    },
    "body": {
      "access_token": "eyJraWQiOiJjNzExN2M5Ny1hMzFmLTQwNjEtYTQyNS0zYzg5NzBkMjZmNzYiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJteS1jbGllbnQiLCJhdWQiOiJteS1jbGllbnQiLCJuYmYiOjE3NDYxODYwMDAsInNjb3BlIjpbInJlYWQiLCJ3cml0ZSJdLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjkwMDAiLCJleHAiOjE3NDYxODk2MDAsImlhdCI6MTc0NjE4NjAwMCwianRpIjoiYWJjMTIzIn0.signature",
      "token_type": "Bearer",
      "expires_in": 3600,
      "scope": "read write"
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/spring-security-issue-token-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.