Authentication flow Service to Service Microsoft Graph and Bookings API










0















I am building a custom mobile application that has a client, custom backend server (I'm building) and interacts with numerous other api's. One of these api's is Microsoft bookings.



The problem I'm facing is I need to be authenticated via server to server, with a shared client secret. I'm aware of the numerous docs from MS but have yet to find a solution. I'm wondering if Server to server is even possible with Bookings.



I am able to get an access_token server to server with these permissions. (I have granted 'all permissions' to this app in Azure AD already).



"roles": [
"Calls.JoinGroupCall.All",
"OnlineMeetings.Read.All",
"OnlineMeetings.ReadWrite.All",
"Application.ReadWrite.OwnedBy",
"Calendars.Read",
"People.Read.All",
"Application.ReadWrite.All",
"Calls.InitiateGroupCall.All",
"Directory.ReadWrite.All",
"Calls.JoinGroupCallAsGuest.All",
"Sites.Read.All",
"Sites.ReadWrite.All",
"Sites.Manage.All",
"Files.ReadWrite.All",
"Directory.Read.All",
"User.Read.All",
"Calendars.ReadWrite",
"Mail.Send",
"ProgramControl.Read.All",
"ProgramControl.ReadWrite.All",
"Calls.Initiate.All"


],



Those are the permissions from the decoded token. When I go to make calls to the Bookings api I receive 401.
enter image description here



I can however use this token to access different graph endpoints no problem.



I will note, that I am able to make successful calls to the bookings api through Graph Explorer with my account, not related to this 'Application in Azure AD'.



Does this resource in Azure AD need a bookings License?
Is this even possible S2S?



Are there any other ways to bypass this without user credentials?



Thanks.










share|improve this question


























    0















    I am building a custom mobile application that has a client, custom backend server (I'm building) and interacts with numerous other api's. One of these api's is Microsoft bookings.



    The problem I'm facing is I need to be authenticated via server to server, with a shared client secret. I'm aware of the numerous docs from MS but have yet to find a solution. I'm wondering if Server to server is even possible with Bookings.



    I am able to get an access_token server to server with these permissions. (I have granted 'all permissions' to this app in Azure AD already).



    "roles": [
    "Calls.JoinGroupCall.All",
    "OnlineMeetings.Read.All",
    "OnlineMeetings.ReadWrite.All",
    "Application.ReadWrite.OwnedBy",
    "Calendars.Read",
    "People.Read.All",
    "Application.ReadWrite.All",
    "Calls.InitiateGroupCall.All",
    "Directory.ReadWrite.All",
    "Calls.JoinGroupCallAsGuest.All",
    "Sites.Read.All",
    "Sites.ReadWrite.All",
    "Sites.Manage.All",
    "Files.ReadWrite.All",
    "Directory.Read.All",
    "User.Read.All",
    "Calendars.ReadWrite",
    "Mail.Send",
    "ProgramControl.Read.All",
    "ProgramControl.ReadWrite.All",
    "Calls.Initiate.All"


    ],



    Those are the permissions from the decoded token. When I go to make calls to the Bookings api I receive 401.
    enter image description here



    I can however use this token to access different graph endpoints no problem.



    I will note, that I am able to make successful calls to the bookings api through Graph Explorer with my account, not related to this 'Application in Azure AD'.



    Does this resource in Azure AD need a bookings License?
    Is this even possible S2S?



    Are there any other ways to bypass this without user credentials?



    Thanks.










    share|improve this question
























      0












      0








      0








      I am building a custom mobile application that has a client, custom backend server (I'm building) and interacts with numerous other api's. One of these api's is Microsoft bookings.



      The problem I'm facing is I need to be authenticated via server to server, with a shared client secret. I'm aware of the numerous docs from MS but have yet to find a solution. I'm wondering if Server to server is even possible with Bookings.



      I am able to get an access_token server to server with these permissions. (I have granted 'all permissions' to this app in Azure AD already).



      "roles": [
      "Calls.JoinGroupCall.All",
      "OnlineMeetings.Read.All",
      "OnlineMeetings.ReadWrite.All",
      "Application.ReadWrite.OwnedBy",
      "Calendars.Read",
      "People.Read.All",
      "Application.ReadWrite.All",
      "Calls.InitiateGroupCall.All",
      "Directory.ReadWrite.All",
      "Calls.JoinGroupCallAsGuest.All",
      "Sites.Read.All",
      "Sites.ReadWrite.All",
      "Sites.Manage.All",
      "Files.ReadWrite.All",
      "Directory.Read.All",
      "User.Read.All",
      "Calendars.ReadWrite",
      "Mail.Send",
      "ProgramControl.Read.All",
      "ProgramControl.ReadWrite.All",
      "Calls.Initiate.All"


      ],



      Those are the permissions from the decoded token. When I go to make calls to the Bookings api I receive 401.
      enter image description here



      I can however use this token to access different graph endpoints no problem.



      I will note, that I am able to make successful calls to the bookings api through Graph Explorer with my account, not related to this 'Application in Azure AD'.



      Does this resource in Azure AD need a bookings License?
      Is this even possible S2S?



      Are there any other ways to bypass this without user credentials?



      Thanks.










      share|improve this question














      I am building a custom mobile application that has a client, custom backend server (I'm building) and interacts with numerous other api's. One of these api's is Microsoft bookings.



      The problem I'm facing is I need to be authenticated via server to server, with a shared client secret. I'm aware of the numerous docs from MS but have yet to find a solution. I'm wondering if Server to server is even possible with Bookings.



      I am able to get an access_token server to server with these permissions. (I have granted 'all permissions' to this app in Azure AD already).



      "roles": [
      "Calls.JoinGroupCall.All",
      "OnlineMeetings.Read.All",
      "OnlineMeetings.ReadWrite.All",
      "Application.ReadWrite.OwnedBy",
      "Calendars.Read",
      "People.Read.All",
      "Application.ReadWrite.All",
      "Calls.InitiateGroupCall.All",
      "Directory.ReadWrite.All",
      "Calls.JoinGroupCallAsGuest.All",
      "Sites.Read.All",
      "Sites.ReadWrite.All",
      "Sites.Manage.All",
      "Files.ReadWrite.All",
      "Directory.Read.All",
      "User.Read.All",
      "Calendars.ReadWrite",
      "Mail.Send",
      "ProgramControl.Read.All",
      "ProgramControl.ReadWrite.All",
      "Calls.Initiate.All"


      ],



      Those are the permissions from the decoded token. When I go to make calls to the Bookings api I receive 401.
      enter image description here



      I can however use this token to access different graph endpoints no problem.



      I will note, that I am able to make successful calls to the bookings api through Graph Explorer with my account, not related to this 'Application in Azure AD'.



      Does this resource in Azure AD need a bookings License?
      Is this even possible S2S?



      Are there any other ways to bypass this without user credentials?



      Thanks.







      azure-active-directory microsoft-graph microsoft-graph-security






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 13 '18 at 22:41









      Gavin ThomasGavin Thomas

      990313




      990313






















          2 Answers
          2






          active

          oldest

          votes


















          0














          So I spent over a week trying to solve this problem due to the MS doc nightmare. I'm only posting to help others!



          Bookings doesn't support service to service yet. So if you wan't to implement this without a user physically signing in, IE. If you have a dedicated booking admin account credentials you have to hard code the clients credentials.



          I found my answer here https://stackoverflow.com/a/49814924/9105626
          enter image description here






          share|improve this answer






























            0














            Microsoft Bookings API doesn't seem to support "Application Permissions" so far.



            Only permissions available are "Delegated Permissions", which means your token has to be acquired with the context of a signed-in user.



            Here are two Microsoft documentation sources that I came across:




            • Microsoft Graph Permissions Reference - Please look at the "Bookings Permissions" section.



              enter image description here



            • Microsoft Bookings Samples
              enter image description here


            I know you mention Server to Server authentication using a client secret. AFAIK, that case will NOT work directly, because clientId and clientSecret only provide an application's identity (which can't be assigned any permissions because there are no relevant application permissions available for this API).



            Just in case you can have some User context involved, here is code from bookings samples link above, to acquire the token in a Native application using ADAL



            var authenticationContext = new AuthenticationContext("https://login.microsoftonline.com/common/");

            var authenticationResult = await authenticationContext.AcquireTokenAsync(
            "https://graph.microsoft.com/",
            clientApplication_ClientId,
            clientApplication_RedirectUri,
            new PlatformParameters(PromptBehavior.RefreshSession));

            // The results of this call are sent as the Authorization header of each HTTPS request to Graph.
            var authorizationHeader = authenticationResult.CreateAuthorizationHeader();


            Suggestions on ways to make this scenario work




            1. On Behalf Of Flow



              Your mobile application client could prompt a user for credentials to act on Behalf of the user and call your backend web API, which in turn calls the downstream API like Bookings API. This is called Service to Service Calls on behalf of the User



              Here is a code sample which shows exactly this with a native application (WPF) and an SPA. In your case, just replace the WPF application with your mobile client application for understanding purposes and rest of the scenario becomes very similar.



              Calling a downstream web API from a web API using Azure AD



              enter image description here




            2. ROPC Grant (Not Recommended)



              Resource Owner Password Credentials grant can help as your application will have end user password available to it, but it has multiple issues and any security guidance will discourage you from using it.



              ROPC opens up security risks, doesn't follow best practices and has functionality issues as well. ROPC doesn't work with MFA enabled users as well as federated authentication users.



              For all practical purposes, you should avoid ROPC as long as possible. You can find the same recommendation in ADAL documentation itself and multiple other documentations from Microsoft or even generally about OAuth 2.0.







            share|improve this answer

























            • Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

              – Gavin Thomas
              Nov 14 '18 at 0:01











            • I'll work delegated and then upvote tomorrow.

              – Gavin Thomas
              Nov 14 '18 at 0:01











            • @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

              – Rohit Saigal
              Nov 14 '18 at 0:57











            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53290598%2fauthentication-flow-service-to-service-microsoft-graph-and-bookings-api%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            So I spent over a week trying to solve this problem due to the MS doc nightmare. I'm only posting to help others!



            Bookings doesn't support service to service yet. So if you wan't to implement this without a user physically signing in, IE. If you have a dedicated booking admin account credentials you have to hard code the clients credentials.



            I found my answer here https://stackoverflow.com/a/49814924/9105626
            enter image description here






            share|improve this answer



























              0














              So I spent over a week trying to solve this problem due to the MS doc nightmare. I'm only posting to help others!



              Bookings doesn't support service to service yet. So if you wan't to implement this without a user physically signing in, IE. If you have a dedicated booking admin account credentials you have to hard code the clients credentials.



              I found my answer here https://stackoverflow.com/a/49814924/9105626
              enter image description here






              share|improve this answer

























                0












                0








                0







                So I spent over a week trying to solve this problem due to the MS doc nightmare. I'm only posting to help others!



                Bookings doesn't support service to service yet. So if you wan't to implement this without a user physically signing in, IE. If you have a dedicated booking admin account credentials you have to hard code the clients credentials.



                I found my answer here https://stackoverflow.com/a/49814924/9105626
                enter image description here






                share|improve this answer













                So I spent over a week trying to solve this problem due to the MS doc nightmare. I'm only posting to help others!



                Bookings doesn't support service to service yet. So if you wan't to implement this without a user physically signing in, IE. If you have a dedicated booking admin account credentials you have to hard code the clients credentials.



                I found my answer here https://stackoverflow.com/a/49814924/9105626
                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 14 '18 at 0:14









                Gavin ThomasGavin Thomas

                990313




                990313























                    0














                    Microsoft Bookings API doesn't seem to support "Application Permissions" so far.



                    Only permissions available are "Delegated Permissions", which means your token has to be acquired with the context of a signed-in user.



                    Here are two Microsoft documentation sources that I came across:




                    • Microsoft Graph Permissions Reference - Please look at the "Bookings Permissions" section.



                      enter image description here



                    • Microsoft Bookings Samples
                      enter image description here


                    I know you mention Server to Server authentication using a client secret. AFAIK, that case will NOT work directly, because clientId and clientSecret only provide an application's identity (which can't be assigned any permissions because there are no relevant application permissions available for this API).



                    Just in case you can have some User context involved, here is code from bookings samples link above, to acquire the token in a Native application using ADAL



                    var authenticationContext = new AuthenticationContext("https://login.microsoftonline.com/common/");

                    var authenticationResult = await authenticationContext.AcquireTokenAsync(
                    "https://graph.microsoft.com/",
                    clientApplication_ClientId,
                    clientApplication_RedirectUri,
                    new PlatformParameters(PromptBehavior.RefreshSession));

                    // The results of this call are sent as the Authorization header of each HTTPS request to Graph.
                    var authorizationHeader = authenticationResult.CreateAuthorizationHeader();


                    Suggestions on ways to make this scenario work




                    1. On Behalf Of Flow



                      Your mobile application client could prompt a user for credentials to act on Behalf of the user and call your backend web API, which in turn calls the downstream API like Bookings API. This is called Service to Service Calls on behalf of the User



                      Here is a code sample which shows exactly this with a native application (WPF) and an SPA. In your case, just replace the WPF application with your mobile client application for understanding purposes and rest of the scenario becomes very similar.



                      Calling a downstream web API from a web API using Azure AD



                      enter image description here




                    2. ROPC Grant (Not Recommended)



                      Resource Owner Password Credentials grant can help as your application will have end user password available to it, but it has multiple issues and any security guidance will discourage you from using it.



                      ROPC opens up security risks, doesn't follow best practices and has functionality issues as well. ROPC doesn't work with MFA enabled users as well as federated authentication users.



                      For all practical purposes, you should avoid ROPC as long as possible. You can find the same recommendation in ADAL documentation itself and multiple other documentations from Microsoft or even generally about OAuth 2.0.







                    share|improve this answer

























                    • Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • I'll work delegated and then upvote tomorrow.

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

                      – Rohit Saigal
                      Nov 14 '18 at 0:57
















                    0














                    Microsoft Bookings API doesn't seem to support "Application Permissions" so far.



                    Only permissions available are "Delegated Permissions", which means your token has to be acquired with the context of a signed-in user.



                    Here are two Microsoft documentation sources that I came across:




                    • Microsoft Graph Permissions Reference - Please look at the "Bookings Permissions" section.



                      enter image description here



                    • Microsoft Bookings Samples
                      enter image description here


                    I know you mention Server to Server authentication using a client secret. AFAIK, that case will NOT work directly, because clientId and clientSecret only provide an application's identity (which can't be assigned any permissions because there are no relevant application permissions available for this API).



                    Just in case you can have some User context involved, here is code from bookings samples link above, to acquire the token in a Native application using ADAL



                    var authenticationContext = new AuthenticationContext("https://login.microsoftonline.com/common/");

                    var authenticationResult = await authenticationContext.AcquireTokenAsync(
                    "https://graph.microsoft.com/",
                    clientApplication_ClientId,
                    clientApplication_RedirectUri,
                    new PlatformParameters(PromptBehavior.RefreshSession));

                    // The results of this call are sent as the Authorization header of each HTTPS request to Graph.
                    var authorizationHeader = authenticationResult.CreateAuthorizationHeader();


                    Suggestions on ways to make this scenario work




                    1. On Behalf Of Flow



                      Your mobile application client could prompt a user for credentials to act on Behalf of the user and call your backend web API, which in turn calls the downstream API like Bookings API. This is called Service to Service Calls on behalf of the User



                      Here is a code sample which shows exactly this with a native application (WPF) and an SPA. In your case, just replace the WPF application with your mobile client application for understanding purposes and rest of the scenario becomes very similar.



                      Calling a downstream web API from a web API using Azure AD



                      enter image description here




                    2. ROPC Grant (Not Recommended)



                      Resource Owner Password Credentials grant can help as your application will have end user password available to it, but it has multiple issues and any security guidance will discourage you from using it.



                      ROPC opens up security risks, doesn't follow best practices and has functionality issues as well. ROPC doesn't work with MFA enabled users as well as federated authentication users.



                      For all practical purposes, you should avoid ROPC as long as possible. You can find the same recommendation in ADAL documentation itself and multiple other documentations from Microsoft or even generally about OAuth 2.0.







                    share|improve this answer

























                    • Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • I'll work delegated and then upvote tomorrow.

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

                      – Rohit Saigal
                      Nov 14 '18 at 0:57














                    0












                    0








                    0







                    Microsoft Bookings API doesn't seem to support "Application Permissions" so far.



                    Only permissions available are "Delegated Permissions", which means your token has to be acquired with the context of a signed-in user.



                    Here are two Microsoft documentation sources that I came across:




                    • Microsoft Graph Permissions Reference - Please look at the "Bookings Permissions" section.



                      enter image description here



                    • Microsoft Bookings Samples
                      enter image description here


                    I know you mention Server to Server authentication using a client secret. AFAIK, that case will NOT work directly, because clientId and clientSecret only provide an application's identity (which can't be assigned any permissions because there are no relevant application permissions available for this API).



                    Just in case you can have some User context involved, here is code from bookings samples link above, to acquire the token in a Native application using ADAL



                    var authenticationContext = new AuthenticationContext("https://login.microsoftonline.com/common/");

                    var authenticationResult = await authenticationContext.AcquireTokenAsync(
                    "https://graph.microsoft.com/",
                    clientApplication_ClientId,
                    clientApplication_RedirectUri,
                    new PlatformParameters(PromptBehavior.RefreshSession));

                    // The results of this call are sent as the Authorization header of each HTTPS request to Graph.
                    var authorizationHeader = authenticationResult.CreateAuthorizationHeader();


                    Suggestions on ways to make this scenario work




                    1. On Behalf Of Flow



                      Your mobile application client could prompt a user for credentials to act on Behalf of the user and call your backend web API, which in turn calls the downstream API like Bookings API. This is called Service to Service Calls on behalf of the User



                      Here is a code sample which shows exactly this with a native application (WPF) and an SPA. In your case, just replace the WPF application with your mobile client application for understanding purposes and rest of the scenario becomes very similar.



                      Calling a downstream web API from a web API using Azure AD



                      enter image description here




                    2. ROPC Grant (Not Recommended)



                      Resource Owner Password Credentials grant can help as your application will have end user password available to it, but it has multiple issues and any security guidance will discourage you from using it.



                      ROPC opens up security risks, doesn't follow best practices and has functionality issues as well. ROPC doesn't work with MFA enabled users as well as federated authentication users.



                      For all practical purposes, you should avoid ROPC as long as possible. You can find the same recommendation in ADAL documentation itself and multiple other documentations from Microsoft or even generally about OAuth 2.0.







                    share|improve this answer















                    Microsoft Bookings API doesn't seem to support "Application Permissions" so far.



                    Only permissions available are "Delegated Permissions", which means your token has to be acquired with the context of a signed-in user.



                    Here are two Microsoft documentation sources that I came across:




                    • Microsoft Graph Permissions Reference - Please look at the "Bookings Permissions" section.



                      enter image description here



                    • Microsoft Bookings Samples
                      enter image description here


                    I know you mention Server to Server authentication using a client secret. AFAIK, that case will NOT work directly, because clientId and clientSecret only provide an application's identity (which can't be assigned any permissions because there are no relevant application permissions available for this API).



                    Just in case you can have some User context involved, here is code from bookings samples link above, to acquire the token in a Native application using ADAL



                    var authenticationContext = new AuthenticationContext("https://login.microsoftonline.com/common/");

                    var authenticationResult = await authenticationContext.AcquireTokenAsync(
                    "https://graph.microsoft.com/",
                    clientApplication_ClientId,
                    clientApplication_RedirectUri,
                    new PlatformParameters(PromptBehavior.RefreshSession));

                    // The results of this call are sent as the Authorization header of each HTTPS request to Graph.
                    var authorizationHeader = authenticationResult.CreateAuthorizationHeader();


                    Suggestions on ways to make this scenario work




                    1. On Behalf Of Flow



                      Your mobile application client could prompt a user for credentials to act on Behalf of the user and call your backend web API, which in turn calls the downstream API like Bookings API. This is called Service to Service Calls on behalf of the User



                      Here is a code sample which shows exactly this with a native application (WPF) and an SPA. In your case, just replace the WPF application with your mobile client application for understanding purposes and rest of the scenario becomes very similar.



                      Calling a downstream web API from a web API using Azure AD



                      enter image description here




                    2. ROPC Grant (Not Recommended)



                      Resource Owner Password Credentials grant can help as your application will have end user password available to it, but it has multiple issues and any security guidance will discourage you from using it.



                      ROPC opens up security risks, doesn't follow best practices and has functionality issues as well. ROPC doesn't work with MFA enabled users as well as federated authentication users.



                      For all practical purposes, you should avoid ROPC as long as possible. You can find the same recommendation in ADAL documentation itself and multiple other documentations from Microsoft or even generally about OAuth 2.0.








                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 14 '18 at 0:57

























                    answered Nov 13 '18 at 23:54









                    Rohit SaigalRohit Saigal

                    3,2622218




                    3,2622218












                    • Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • I'll work delegated and then upvote tomorrow.

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

                      – Rohit Saigal
                      Nov 14 '18 at 0:57


















                    • Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • I'll work delegated and then upvote tomorrow.

                      – Gavin Thomas
                      Nov 14 '18 at 0:01











                    • @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

                      – Rohit Saigal
                      Nov 14 '18 at 0:57

















                    Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

                    – Gavin Thomas
                    Nov 14 '18 at 0:01





                    Hey thanks for the responses. I haven't tried delegated permissions yet, that may work, as I can use client credentials and the calls work. The problem with the other solutions are that none accept clients username / password handled within the code. It's all based on MS Auth in the web. So no matter what it requires a human to physically log in...

                    – Gavin Thomas
                    Nov 14 '18 at 0:01













                    I'll work delegated and then upvote tomorrow.

                    – Gavin Thomas
                    Nov 14 '18 at 0:01





                    I'll work delegated and then upvote tomorrow.

                    – Gavin Thomas
                    Nov 14 '18 at 0:01













                    @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

                    – Rohit Saigal
                    Nov 14 '18 at 0:57






                    @GavinThomas Please know that Delegated permissions will only work if you acquire token as a signed in user (standard way is to Prompt the user for credentials).. delegated permissions will NOT work if you still acquire the token using onl clientID and clientSecret because that is just application's identity which has no permissions. I have edited my answer to suggest that could possibly help in your case..

                    – Rohit Saigal
                    Nov 14 '18 at 0:57


















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53290598%2fauthentication-flow-service-to-service-microsoft-graph-and-bookings-api%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Darth Vader #20

                    How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

                    Ondo