Hi dasjo02,
Now it worked, but in the page that I am redirected I coded to show the headers and the body of the request, but it does not have what is documented:
Excepted(Documentation)
ResponseHeader:
status: 200Header:content-type: text/htmlBody:The user-agent will receive a login page. This page will request user credentials and the consent of the user. If the user denies the request the client will receive an error. If the user grants the client it will receive the access_token attached to the redirect_uriNext:The OAuth server will redirect the user-agent back to the client:Header:302Header:Location: the-redirect-uri?state=the-given-state#access_token=an-access_token&expires_in=lifetime-in-seconds&token_type=Bearer&scope=granted-scope&id_token=an-id-token-represented-as-jwt&id_token_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
My Case:
Connection : keep-aliveAccept : */*Accept-Encoding : gzip, deflate, sdchAccept-Language : pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4Authorization : Basic bDd4eDExNzA3NDIwZWEwNTQ3NmE5MzJjZDJjZDE1ODhhZjA5OmE5ZThmZWQyYzEyZTRmNDc4ZjUxNTJjMDg1NDVlZWI2Host : amldktsp153569User-Agent : Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36