The snippet includes one XAML file - Return AuthToken. It takes as input the username, password and URL end point. It returns the output as tokens which can be used further in programs where API's are authenticated by using tokens. Whenever new tokens are required this XAML can be called.
The snippet is designed without hard coding and the code is dynamic, it requires only input parameters so that it can run without any issues.
The above design of XAML code was done to meet the requirements where different processes need to use tokens for authorization of API example for CRM API's.
This will achieve the objective of meeting security approvals which may be required in different projects/clients.