Hi Team,
I’m trying to get OAuth token using callback URL but I’m missing something here. Could you please help me here what I’m missing here ?
val header = Map(
"Accept" -> """application/json""",
"Content-Type" -> """application/x-www-form-urlencoded, charset=UTF-8""")
val auth_token = scenario("POST Authentication")
.exec(
http("POST OAuth Req")
.post("/validate/activationURL")
.formParam("oauth.token.client.secret", "*******")
.formParam("oauth.token.url", "https://myweb.com/as/token.oauth2")
.formParam("oauth.token.client.id", "my-test-user")
// .formParam("oauth.token.client.secret", "*****")
.formParam("oauth.token.grant.type", "client_credentials")
.formParam("oauth.token.scope", "my:test:activation")
.headers(header)
)
And Error I got is