locked
URL for OAuth get access token SharePoint RRS feed

  • Question

  • Hi all,

    I am meeting issues about URL access token on SharePoint service.

    When I read session Authorization Code OAuth flow 

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/authorization-code-oauth-flow-for-sharepoint-add-ins.

    It did not mention to API for get access token when we had already Authorization (this document now only mentions URL for getting Authorization Code).

    What is the URL for access token in here? Please help me.

    Thank a lot,

    David

    Thursday, December 19, 2019 10:08 AM

Answers

All replies

  • Hi David Nguyen Alone,

    Please have a look following blogs:

    The token authentication endpoint is:

    https://accounts.accesscontrol.windows.net/<site_realm>/tokens/OAuth/2

    Best Regards,

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Friday, December 20, 2019 3:18 AM
  • Hi David Nguyen Alone,

    Regarding this issue, may I know how's going? Does this get solved? please feel free to talk with us if you have further issues, we're glad to help you. 

    Thanks 

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, December 31, 2019 8:27 AM
  • Hi Baker Kong,

    Thanks so much. I am very appreciate that.

    Currently, I still have not Client Id and Client secret info from Admin, So I still can not verify URL for get access token.

    When  I have full info, I will implement getting token with URL that you provided. And reply as soon as possible.

    One more time, Thanks so much.

    Hope I will receive many help from you.

    Thank a lot,

    Danh Nguyen Alone

    Thursday, January 9, 2020 4:38 AM
  • Hi David Nguyen Alone,

    That's good. I have tested this endpoint for times, no worry too much.

    And it would be appreciated if you could mark it as Answer so that others who stuck in similar issues will get answered soon. 

    Best Regards,

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Thursday, January 9, 2020 6:09 AM
  • Hi Baker Kong

    I follow step 2 of blog to get Realm and Audience Principal Id, but it not work success.

    https://community.denodo.com/kb/view/document/How%20to%20connect%20Denodo%20to%20Sharepoint%20Online%20using%20OData%20with%20OAuth%20authentication?category=Security.

    Have any problem in here.

    Have another way to get Realm and Audience Principal Id? Please help me.

    Below is my error:

    Thank a lot

    David Nguyen Alone

    Thursday, January 9, 2020 7:31 AM
  • Hi Baker Kong,

    This is home page when I login to SharePoint app.

    

    Thursday, January 9, 2020 7:42 AM
  • Hi David Nguyen Alone,

    Your step has no problem, please check the response headers:

    Thanks

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Thursday, January 9, 2020 7:49 AM
  • Hi Baker Kong,

    Great. That is my mistake.

    And I have one more problem. Can you help me.

    My client still not provide me Client Id and Secret, so we still can not get Access token from Rest API. So I can not testing another API, such as get folder or document, library.

    So have any way to get access token?

    I tried to login to Sharepoint service, and find API's info of tag Network in Chrome Browser, but still not see access token. Please help me for that.

    Thank a lot,

    David Nguyen Alone


    Thursday, January 9, 2020 9:17 AM
  • Hi David Nguyen Alone,

    Registration info is required for access token. If you just want to test the API, you can have a try following extension:

    Thanks

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Monday, January 13, 2020 3:12 AM
  • Hi Baker Kong, 

    So simple and handy.

    Thanks so much for spend time to help me in many time.

    :+1::+1::+1: 

    Thank a lot,

    Danh



    Monday, January 13, 2020 10:27 AM
  • Hi David Nguyen Alone,

    That's good. Glad to help this. And if possible, could you please mark it as Answer so that others who stuck in similar issues will get answered soon?

    Thanks 

    Baker Kong


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    SharePoint Server 2019 has been released, you can click  here to download it.
    Click here to learn new features. Visit the dedicated forum to share, explore and talk to experts about SharePoint Server 2019.

    Tuesday, January 14, 2020 1:16 AM
  • Hi Baber Kong,

    Have meet issue relate Base URL Get access token on local Sharepoint.

    Please help me if you can.

    https://social.msdn.microsoft.com/Forums/en-US/16d24551-1c55-4bb8-9ea8-180a638e52fc/what-is-authorization-url-oauth2-where-create-sharepoint-site-on-local-computer?forum=appsforsharepoint

    Thanks,

    Danh

    Friday, July 3, 2020 8:37 AM