-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
React Generator - api problem - authorization #370
Comments
How can I authorize a request? Is this in the documentation somewhere? |
I guess the options are shown by the create-client program help: .option("--username [username]", "Username for basic auth (Hydra only)")
.option("--password [password]", "Password for basic auth (Hydra only)")
.option("--bearer [bearer]", "Token for bearer auth (Hydra only)") code from https://github.com/api-platform/create-client/blob/main/src/index.js |
@metaclass-nl I run command: It still doesn't work |
Branch chapter9-react of My own tutorial Api Platform does include instructions to generate code from an api that requires authentication but that is the api from the api branches of the tutorial itself and it also assumes you already have completed chapter 7 (authentication) *, I do not know if they will work with the demo. My tutorial does not use the demo so i do no longer follow its developments. Sorry! * You are advised anyway to start with chapter 1 and work your way up, unless you are familiar with the knowledge explained in the earlyer chapters. |
https://api-platform.com/docs/create-client/react/
Request: https://demo.api-platform.com/admin/books
Error: Full authentication is required to access this resource.
The text was updated successfully, but these errors were encountered: