docs icon indicating copy to clipboard operation
docs copied to clipboard

Update 02-calling-an-api.md to explain consent

Open bitshiftnetau opened this issue 4 years ago • 3 comments

There is currently no mention of why consent is required and following this example app only leads to confusion. It took WAY to long to find that the management API requires consent regardless of anything and/or why/when consent is explicitly necessary when using a SPA. These instructions seem to reflect a 3rd party app, rather than a first party app.

bitshiftnetau avatar Jun 03 '21 13:06 bitshiftnetau

On second thoughts, it might be better to remove the use of the Management API altogether for demo purposes and instead use "https://[your_account].auth0.com/userinfo" as audience.

Please comment and I can amend the entire document and pull request to reflect if required. Happy to leave it to you if you wish to review the document further internally.

bitshiftnetau avatar Jun 03 '21 13:06 bitshiftnetau

Thanks for raising this @bitshiftnetau.

the management API requires consent regardless of anything

When you saw consent being asked for, were you running on localhost at the time? On localhost consent is always asked for if needed, rather than being skipped for first-party apps. Here's more detail on when consent can be skipped. So it's less to do with it being the management API and more about the environment.

Either way, it sounds like we can provide more information here. We can review the rest of the doc for improvements.

stevehobbsdev avatar Jun 09 '21 11:06 stevehobbsdev

Hi @stevehobbsdev! Thanks for the response.

Yes indeedy I was running that bad boii in test. Oh ok, that actually sounds very reasonable for security.

Awesome thanks for taking on the suggestion.

bitshiftnetau avatar Jun 09 '21 12:06 bitshiftnetau

Closing due to inactivity, please feel free to comment if you'd prefer to reopen.

Widcket avatar Feb 14 '23 00:02 Widcket