DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

SBOMs are essential to circumventing software supply chain attacks, and they provide visibility into various software components.

Related

  • How to Build Your First Generative AI App With Langflow: A Step-by-Step Guide
  • Building an AI-Powered Text Analysis App With React: A Step-by-Step Guide
  • How to Identify the Underlying Causes of Connection Timeout Errors for MongoDB With Java
  • Building a Simple Todo App With Model Context Protocol (MCP)

Trending

  • How to Submit a Post to DZone
  • DZone's Article Submission Guidelines
  • The Evolution of Software Integration: How MCP Is Reshaping AI Development Beyond Traditional APIs
  • Understanding k-NN Search in Elasticsearch

Provider-Hosted App (SharePoint Add-In) Configuration in SharePoint Server 2013

Read this to find out how to add your provider-hosted app to the SharePoint server. Yup, that's pretty much it.

By 
Nishtha Singh user avatar
Nishtha Singh
·
Feb. 01, 18 · Tutorial
Likes (2)
Comment
Save
Tweet
Share
12.3K Views

Join the DZone community and get the full member experience.

Join For Free

SharePoint Provider-hosted apps provides functionality to host the web application on non-SharePoint servers, SharePoint server, and Azure. When App is hosting on an on-premises server with a different domain than SharePoint, the user requires multiple authentications for access to the SharePoint App. To overcome this issue, ADFS (Active Directory Federation Services) component by Microsoft will help to create high-trust relationship between the SharePoint application and the Provider-hosted app.

Follow each step to configure ADFS on your system: 

An add-in uses digital certificates to establish a trust between the remote web application and SharePoint 2013. High-trust add-ins can only be installed to on-premises SharePoint, not to Microsoft SharePoint Online, and they are primarily intended for use with an on-premises, rather than cloud-based, web application.

Below are mentioned the steps to configure SharePoint Add-in in SharePoint Server 2013:

Step 1

Register Domain Account in SharePoint Central Admin.

Image title

Image title

Step 2

Configure Provider APP Services by running the below script. Run this command to configure service: (set variable accordingly)

(Prerequisite: Services account must be registered )

$serviceTypeName = "App Management Service"

$accountName = "domain\services"

$appPool = "SharePoint Service Applications"

$serviceName = "App Management Service"

$serviceDB = "App_Management_Service"

$appDomain = "sharepointapps.local"

$siteSubscriptionName = "app"



$service = Get-SPServiceInstance | where { $_.TypeName -eq $serviceTypeName }

Start-SPServiceInstance $service

Write-Host "Service instance started."

# Gets the name of the managed account and sets it to the variable $account for later use.

$account = Get-SPManagedAccount $accountName

$appPoolAppSvc = Get-SPServiceApplicationPool $appPool

if ($appPoolAppSvc -eq $null)

{

# Creates an application pool for the Subscription Settings service application.

    # Uses a managed account as the security account for the application pool.

    # Stores the application pool as a variable for later use.

    $appPoolAppSvc = New-SPServiceApplicationPool -Name $appPool -Account $account

}

Write-Host "Have the application pool..."



# Creates the Application Management service application, using the variable to associate it with the application pool that was created earlier.

# Stores the new service application as a variable for later use.



$appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name $serviceName -DatabaseName $serviceDB

Write-Host "Service application created..."

# Creates a proxy for the Subscription Settings service application.

$proxySubSvc = New-SPAppManagementServiceApplicationProxy  –ServiceApplication $appAppSvc



Write-Host "Service application proxy created..."



Set-SPAppDomain $appDomain

Write-Host "AppDomain set..."

Set-SPAppSiteSubscriptionName -Name $siteSubscriptionName -Confirm:$false

Write-Host "SiteSubscriptionName set..."

Write-Host -ForegroundColor green "Done."

Outcome:

  • Once the code is run, it will start App Management Services from Manage Services in Services on Server. ( If not started automatically, start manually)
    Image title

  • It will also create App pool and Proxy Service.

  • It will set APPDomain and Site Subscription.

Image title

app SharePoint

Opinions expressed by DZone contributors are their own.

Related

  • How to Build Your First Generative AI App With Langflow: A Step-by-Step Guide
  • Building an AI-Powered Text Analysis App With React: A Step-by-Step Guide
  • How to Identify the Underlying Causes of Connection Timeout Errors for MongoDB With Java
  • Building a Simple Todo App With Model Context Protocol (MCP)

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: