Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add generic host for each HTTP block (vary by host) to add credentials #38

Closed
ignatandrei opened this issue Apr 27, 2020 · 3 comments
Closed
Assignees
Labels
good first issue Good for newcomers JavaScript up for grabs up for grabs

Comments

@ignatandrei
Copy link
Owner

add generic host for each HTTP block (vary by host) to add credentials
For example, some credentials might be transmitted via Header (JWT)

@ignatandrei
Copy link
Owner Author

as a test , https://api.chucknorris.io/

@robertszabobv
Copy link
Collaborator

robertszabobv commented May 3, 2020

Using Postman

  • to get the bearer token, send a POST request to api/registration. The body of this request should contain "blockly"
  • to test authorization, send a GET request to api/restrictedaccess. This request needs to have an Authorization header set to Bearer {previously obtained token} in order to return 200 OK
  • sending GET request to api/restrictedaccess without the Authorization token will generate a 401 unauthorized response

@ignatandrei ignatandrei self-assigned this May 5, 2020
@ignatandrei ignatandrei added the up for grabs up for grabs label May 6, 2020
@ignatandrei
Copy link
Owner Author

done -see JWT on https://netcoreblockly.herokuapp.com/blockly.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers JavaScript up for grabs up for grabs
Projects
None yet
Development

No branches or pull requests

2 participants