I am getting below response when I try to get Access Token with Grant Type Client Credentials
{
"data" : null,
"error" : "invalid_grant",
"code" : null,
"message" : "The provided grant or refresh token is invalid.",
"success" : false,
"headers" : null
}
Below is my Security Integration
CREATE OR REPLACE SECURITY INTEGRATION my_oauth_client
TYPE = OAUTH
ENABLED = TRUE
OAUTH_CLIENT = CUSTOM
OAUTH_CLIENT_TYPE = 'CONFIDENTIAL'
OAUTH_REDIRECT_URI = 'https://localhost.com'
OAUTH_ISSUE_REFRESH_TOKENS = TRUE;
Note: I am able to get access Token when I use Grant Type as Authorization code as it is asking for Authorzation by opening a window, I am looking for Client Credetials which is Server to Server Authorization
Please point me what I am doing wrong here
I am getting Invalid Grant for Client Credentials because Snowflake OAuth only support Auth code grant flow
So I am going to use External OAuth