---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, Presentation Components, Endpoint authentication, UI components]
nav: wcp_docs
parent_url: /wcp_docs/
title: Declare Authentication Types in the SMD
layout: subsection
---

### Context

<a id="context_N1003B_N1001E_N10001"></a>
To protect the data accessed by the REST API endpoints on a page, specify the authentication type for each endpoint in the PMD file. Presentation Components support these authentication types:

-   [Reference: No Authentication](/wcp_docs/hpv1537909643136.html)
-   [Reference: Workday Single Sign-On](/wcp_docs/bik1537909706439.html)
-   [Reference: OAuth2 Authorization Code](/wcp_docs/jzx1537909761291.html)
-   [Reference: OAuth2 Client Credentials](/wcp_docs/axp1537909839739.html)
-   [Reference: Amazon Web Services Signature V4](/wcp_docs/pic1537909906787.html)
-   [Reference: Integration System User (ISU)](/wcp_docs/GUID-daf749bf-796c-4087-b7f0-60d00f02c3c9-enHYPHENus.html)
-   [Reference: Workday Integration System User (Legacy WCPISU)](/wcp_docs/rzc1537922580355.html)


Before you can specify any authentication type in an endpoint definition, first declare the authentication type in the Site Metadata (SMD).

The `siteAuth` property in the SMD contains the list of authentication types. The endpoint declarations in the PMDs reference the `id` of the authentication type.

### Steps

1.  <a id="step_N1004F_N1004C_N1001E_N10001"></a>In App Builder, open the SMD of your custom app.
2.  <a id="step_N10058_N1004C_N1001E_N10001"></a>Add a `siteAuth` subschema with the `authTypes` array.
3.  <a id="step_N10069_N1004C_N1001E_N10001"></a>In the `authTypes` array, add an item for each authentication type used by the PMD endpoints. For each item, specify a unique `id` and the authentication `scheme`.


### Example

```
"siteAuth" : {
"authTypes" : [
  {
    "id" : "noAuth",
    "scheme" : "NoAuth"
  },
  {
    "id" : "sso",
    "scheme" : "SSO"
  },
  {
     "id": "oAuth2Acme",
     "scheme": "OAUTH2",
     "source": "CREDSTORE",
     "referenceId": "acmeOauth2Id",
     "providerType":"STANDARD_POST",
     "useProxyServer " : true
  },
  {
    "id": "awsV4",
    "scheme": "AWSV4",
    "accessKeyId": "ACCESSKEY",
    "appId": "myAWSAppId_ycjtxv",
    "awsRegion": "us-east-2",
    "awsService": "dynamodb"
  },
  {
    "id" : "isuAuth",
    "scheme": "ISU",
    "username": "Default_ISU"
  },
  {
    "id" : "wcpisu1",
    "scheme" : "WCPISU",
    "appId" : "myApp_ycjtxv",
    "tokenHolder" : "devSystemUser",
    "checkEnvironment" : "true"
}
]
}
```

### Next Steps

<a id="postreq_N100AF_N1001E_N10001"></a>
[Define Endpoint Authentication in the PMD](/wcp_docs/yea1530546235609.html#)

