Error in Getting Access token

kuttti
Kilo Guru

Hello All,

 

I am trying to get a access token using Application registry but following error is thrown. Any help is appreciated.

Step 1:

1. Created OAuth Application Registry using the option "Connect to a third party OAuth provider" .

2. Filled in following details:

       Client id, client secret, Grant type: Client_Credentials, Re-direct Url, Token Url

3. Clicked on Submit.

 

Step2:

Navigate to Credentials -> OAuth 2.0 credentials -> Filled in following deatils

Name: ABC

OAuth Entity Profile: Selected the Application registry that is created in Step 1

Save the record

Next clicked on the "Get OAuthToken" but it's throwing following error

"OAuth flow failed. Verify the configurations and try again. Error detail:invalid_request, Missing parameters: access_token"

 

Thank you!

 

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@kuttti 

check these links

OAuth flow failed.Verify the configurations and try again. Error detail:invalid_request, Missing par... 

Get OAuth token fails to get access token but works from 3rd party client such as Postman 

Trouble getting OAuth token in REST Message? 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

hi @Ankur Bawiskar can you help me with this error "OAuth flow failed. Verify the configurations and try again. Error detail:invalid_request, Missing parameters: access_token" please. I have also done all 3 configurations i.e. Oauth App Registry then creating credential and then in Microsoft sharepoint Online credential and connection alias record i tried setting up by adding my connection but there is already one exsiting connection is there so mine will not work and then tenant was already existing so i didn't touched it. And when clicking on get ouath token it is showing error but when connected with sharepoint time it is working in their side . Please as per your convenience help me on this i am stuck and i don't know where i have missed any configuration. I followed ashustosh munnot you tube video for setup of microsoft sharepoint. do we also need to do graph connection setup or not? We are not relying on postman as it is not used in our system. do we require to do both graph connection setup and microsoft sharepoint setup or any one is fine because for tenant i am not able to create my new one as we are using microsoft sharepoint and for multiple we need to use microsoft graph connection. Can you give exact solution for this please. I need suggestion please what should be the next steps.

Hi @Ankur Bawiskar  

There are Few Things which were required to have Setup for the Microsoft SharePoint Online Integration with Servicenow. But got stuck in the middle of Setup. As this is completely new thing for me, I have gone through several documents and videos(ashustosh munnot video i have followed for setup of microsoft sharepoint) and after that I am listing down all the development part done from my side.

Done Azure portal registry and after that done few configurations but got stuck and didn't proceed further. For tenant also it is already existing and in document it is recommending not to have multiple tenant for SharePoint online spoke established so didn’t create new Tenant.

1)Oauth application registry

2) credentials creation

here tried clicking on get ouath token but the error is occurring which you can find in this Screenshot.

ShreyaS23244136_0-1769166204317.png

 

 

3) Out of 3 existing credential and connection alias record selected this Microsoft sharepoint online record and tried adding the connection created by me but it is already having the existing connection so mine one  we can't use

4) this tenant is also already existing so we can't create new one 

HI Case Team proposed to have the Microsoft Graph Connection establishment as well .

 

Now when connected with SharePoint Team for the Access Token issue they replied: 

 do it in postman (we don’t use this as this is not use in our system)and implement in service-now and recommended approach is Microsoft Graph

So access token issue is not resolved and now they are suggesting to setup Microsoft Graph establishment. So the question remain how to get solution for this access token issue and if we have to proceed with Microsoft Graph so don’t we need to proceed further with the Microsoft shrarepoint setup? or do we have to follow both setup?

Can you please provide the exact solution how to resolve it and how/what should be the next steps so that i can proceed further. I need some solutions so that i am able to retrieve accress token.

BOC03
Tera Contributor

Have any luck on this and if so, what did it for you? Thanks