Skip to content

Latest commit

 

History

History
66 lines (55 loc) · 2.57 KB

File metadata and controls

66 lines (55 loc) · 2.57 KB

Azure Functions

The Authorisation Server solution contains an azure function project.
The GetDataRecipients function is used to get the list of Data Recipients
from the Mock Register and update the Authorisation Server repository.

To Run and Debug Azure Functions

The following procedures can be used to run the functions in a local development environment for evaluation of the functions.
1) Start the Mock Register and the Authorisation Server solutions.
2) Start the Azure Storage Emulator (Azurite):
using a MS Windows command prompt:
md C:\azurite
cd "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator"
azurite --silent --location c:\azurite --debug c:\azurite\debug.log
Noting this is only required to be performed once, it will then be listening on ports - 10000, 10001 and 10002
when debugging is started from MS Visual Studio by selecting CdrAuthServer.GetDataRecipients as the startup project
(by starting a debug instance using F5 or Debug > Start Debugging)
or by using a MS Windows command prompt:
navigate to .\authorisation-server\Source\CdrAuthServer.GetDataRecipients
func host start --verbose

3) Open the Authorisation Server in MS Visual Studio, select CdrAuthServer.GetDataRecipients as the startup project.

4) Start each debug instances (F5 or Debug > Start Debugging), this will simulate the discovery of Data Recipients and the

updating of the data in the Authorisation Server repositories.
Noting the below sql scripts are used to observe the results.
SELECT * FROM [cdr-auth-server].[dbo].[ClientClaims]
SELECT * FROM [cdr-auth-server].[dbo].[Clients]
SELECT * FROM [cdr-auth-server].[dbo].[SoftwareProducts]
SELECT * FROM [cdr-auth-server].[dbo].[LogEvents-DrService]

To Build Azure Functions

dotnet SDK 8.0.10x or higher is required. Latest SDK can be found from the link https://microsoft.com/net