Use CURL to access /demo/mobile-demo/rba with the access token

Use CURL to run the following command in a shell terminal.

The command includes the previously obtained access token with the Authorization header. Use this command to access the protected application resource /demo/mobile-demo/rba.

The response is the result of enforcement of the previously attached CBA policy. The policy requires completion of a TOTP authentication.

The next request validates the TOTP for testuser1. The otp value is supplied by testuser1 by reading its Google Authenticator app.

The resulting response is the actual protected resource from /demo/mobile-demo/rba. Its data format is HTML. However, the basic configuration and REST client experience is successfully deployed.

If you get the following page, then either you have a match for the device fingerprint or you were already authenticated at a high level (for example, one-time password).

Parent topic: Example combining CBA, Authentication Service Framework, and OAuth