Authentication Simulator
Authentication Simulator
Integrate Hosted Simulator with Hyperscale
- Hyperscale configuration - set base URL to https://7s97xn5ffd.execute-api.eu-west-1.amazonaws.com/production/auth/token
- On boot up, the Hyperscale Platform will create an assertion and request an access token from Authentication Simulator.
- When the application is up and running it can call the Client Library API _auth.getToken_to receive the dummy token generated by the simulator : DUMMY ACCESS TOKEN
Manually Invoke Access Token Request:
curl --location --request POST https://7s97xn5ffd.execute-api.eu-west-1.amazonaws.com/production/auth/token
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer'
--data-urlencode 'assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6ImUtUjBCWjZRT1V2WHlIRUtoVWJWRTM4ZWdyanVYZ3pzUXByekNtV2h0dzAiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL29hdXRoLWNvbmZpZy5oeXBlcnNjYWxlLmNvbGRzbm93Lm5ldC9hdXRobiIsImF1ZCI6Imh0dHBzOi8vc2ctZ29sZGVuYmVycnkudnNzY2xvdWQudHY6OTQ0My9vYXV0aDIvdG9rZW4iLCJpYXQiOjE2NTcxNzc1MjAsImp0aSI6IjIyNDYzMDQzLTIwZTAtNGQ3ZC1iODVhLTM0NTY4NTQxNDgzNCIsInN1YiI6InVybjpzeW5hbWVkaWE6b2F1dGg6aWRlbnRpZmllcjpoeXBlcnNjYWxlOlNZTkFIT01FLmFtb3R6LjExODkwYzVmLWExNDgtNDgyNi1hN2QzLTczNzJkYWM5ODUwZiIsImV4cCI6MTY1NzI2MzkyMH0.jcg5NnKGeT1poxYPJLu6f5Z-XqmzetGSGzBRaFLxav0VyK--hoh8ws1C3u4lN0qQkTzipAjcLBOkuUHQSNjPU8pl8-Wg-Eof3OjOmwkirakYlH9hPut_5ri8NTH-FMecfJq7OTO388ug0wsZB1pQ2ZMNN1xCXb0cTfV6u1eYQryTzwzrAXeF3h56GBGjd4MLq2D5QfIFFn8ktxmUuCm2dMofFduL2-vz_ay4LtGRXrLbddcyu9V3mFSv0ACSSZJBSVpfJ8mxBiGuysp8SbLqq3bCJiXBYWoWfmfdOPYkTsM9o2wjB3dUIS4OxRnfhTgU6a7B_t_svLRUZbW68l1j9g'
Response
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1006 100 78 100 928 60 717 0:00:01 0:00:01 --:--:-- 777{"access_token":"DUMMY ACCESS TOKEN","token_type":"bearer","expires_in":"XXX"}
Authentication Tutorial
This section has been replaced by the Device Authentication tutorial.
Simulator Installation
Clone authSim repo: (TODO- move to Synamedia external github.com)
git clone https://github-chf01.synamedia.com/hyperscale/authSim.git
Run Simulator
- Configure the simulator port in config/default.js
- Run npm start.
Example:
npm start
> [email protected] start
> node local.js
Authentication Server Simulator is Running on port 9030
Updated 6 months ago