You must Sign In to post a response.
  • Category: ASP.Net MVC

    I am tring to authenticate office 365. how to update the web.config values?

    Hi,

    I am tring to authenticate office 365. I followed the below link.

    https://github.com/OfficeDev/O365-WebApp-SingleTenant

    I am able build and run the application, but when click on mycontacts or sign.

    I am getting the error for my office 365 credentials.
    I thinking that there is problem web.config following setting.
    1)ida:TenantId
    2)ida:ClientId
    3)ida:ClientSecret
    4)ida:AADInstance

    <add key="ida:TenantId" value="45e4e408-38e2-4546-bfb0-31f2b5bb41ef" />
    <add key="ida:ClientId" value="6ba825ca-d274-4fae-8681-ecf6fedbdd61" />
    <add key="ida:ClientSecret" value="6HpEZxfbbk1RM7nH8iSD0TnTPYtOpBMhoLxdu9z27+o=" />
    <add key="ida:AADInstance" value="https://login.microsoftonline.com/" />

    Anyone tell me how to update the above values.



    Regards,
    Kotireddy.
  • #766128
    Hi,

    Try below link :

    http://www.codeproject.com/Articles/1033978/Office-Authentication-using-Visual-Studio-MVC-appl

    Hope it helps!

  • #766192
    Hi,

    Have you copied your exact TenantId i.e. GUID from portal 'https://manage.windowsazure.com/' ?

    Also find many important tips related to 'Office 365 API integration and development using Visual Studio' here:
    https://msdn.microsoft.com/en-us/office/office365/howto/authenticate-and-use-services
    http://chakkaradeep.com/index.php/office-365-apis-getting-started-with-building-web-applications/


  • Sign In to post your comments