Sample Token Request
The following is a sample token request utilizing mock_client credentials:
curl --request POST \
--url 'https://auth.nxtsoft.com/oauth2/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id=4isavr9btntlrm47fqabtp8gvk \
--data client_secret=i5js9uuj5cceqrgf062ohidcbfmfm5u1jl2ugprn39icfe1mmua
After posting the cURL request, the following is returned:
{
"access_token": "eyJraWQiOiJyVk1SeUtqelBpRll5eWJWZFFIRmE2b1oxa1E3MlJhVENvSW9ENWdZSGJrPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIxNmVjNG5hOWF2ODAxMWliajloc2tmOXVtZiIsInRva2VuX3VzZSI6ImFjY2VzcyIsInNjb3BlIjoidHJhbnNhY3Rpb25zXC9wb3N0IiwiYXV0aF90aW1lIjoxNjI2MzY0OTkxLCJpc3MiOiJodHRwczpcL1wvY29nbml0by1pZHAudXMtd2VzdC0yLmFtYXpvbmF3cy5jb21cL3VzLXdlc3QtMl91NTY2V21yUEsiLCJleHAiOjE2MjYzNjg1OTEsImlhdCI6MTYyNjM2NDk5MSwidmVyc2lvbiI6MiwianRpIjoiYzE3Y2ExYmMtNWExMi00MTMzLThjZWQtMjE3MzBmMTlkNTMwIiwiY2xpZW50X2lkIjoiMTZlYzRuYTlhdjgwMTFpYmo5aHNrZjl1bWYifQ.a7HG-tP1JBsJwvmwMuLAGh3XesC17e2wXQZMyyQIVJgziITtF9ZH1s4ZCoo2nAKqMJSnZV-4LGEhzj6yRR9xIh3ExLNWJMBgyA6BOMyd5c1y4gGQIZsBQ1yvz2VOfw5dsIzqU_UU-VjaxjuWssSargyJoi-urRgetNcAUOyY84A0tb6q7EHIZTtZwzP6kjfclFn_a5xfBIQYrZi9JsdMj0GokRAJRwVT0o1SxiiYwF3EhOf7j0dO_TvYy9ICVTJxIotTgmKT12ANNNJKveJ7IW06k2jSoc24IiBX2uWhOBW26YjdXMlevTYx0chmZ1PGu-pHnKGH0GHWKmAMyMGnzA",
"expires_in": 3600,
"token_type": "Bearer"
}