> For the complete documentation index, see [llms.txt](https://ai-candy2023.gitbook.io/introduction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-candy2023.gitbook.io/introduction/programming/angular/angular-ui-.net-api-.net-auth.md).

# Angular UI - .NET API - .NET Auth

{% code fullWidth="true" %}

```
// Auth
  InMemoryConfig.cs

        public static IEnumerable<Client> GetClients(string url_api, string url_ui) =>
             new List<Client>
             {
               new Client
               {
		  ClientId = "WWWebUI",
		   ....
		},
               new Client
               {
	   	  ClientId = "WWWeb_Api",
		   ....
               }
             }

 ...

        public static IEnumerable<ApiScope> GetApiScopes() =>
              new List<ApiScope> { new ApiScope("WWWeb_Api", "NWI Web API") };

        public static IEnumerable<ApiResource> GetApiResources() =>
            new List<ApiResource>
            {
                new ApiResource("WWWeb_Api", "NWI Web API")
                {
                    Scopes = { "WWWeb_Api" }
                }
            };


// UI
  account.service.ts
       param.set('client_Id', 'WWWebUI');

// API
  Startup.cs
       o.Audience = "WWWeb_Api";
```

{% endcode %}
