Invalid request when attempting to create token for sign in apple

Hi, I am trying to create the token for sign in apple using client_id, client_secret and grant_type but I am getting invalid request error. May I know if authorization_code and redirect_uri parameters are compulsory because I not sure where to get these paramaters from? Can anyone share/guide me on how to pass these parameters correctly. thank you

Invalid request when attempting to create token for sign in apple
 
 
Q