Comments (4)
How can I authorize a request? Is this in the documentation somewhere?
from create-client.
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
from create-client.
@metaclass-nl I run command:
npm init @api-platform/client https://demo.api-platform.com src/ -- --generator react --resource book --username [email protected] --password Pa55w0rd
It still doesn't work
from create-client.
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.
from create-client.
Related Issues (20)
- Feature Request: Support Vue/Quasar state management with Pinia HOT 1
- Use Next 13 in the generator
- Move complex NPM scripts to external shell scripts HOT 1
- Upgrade the React Native generator to use React Native Web HOT 1
- Update Quasar documentation HOT 2
- Nuxt Generator with `-f openapi3` options is not working with `500` error code. HOT 1
- Enum types are not being generated by the Typescript Generator
- Nuxt Generator fails with npm; pinia requires extra config
- Next.js: Form component for input type="checkbox" not working and type error
- Next.js: type errors with ReferenceLinks
- Local client generation - SSL error HOT 1
- Next gen ManyToOne error
- React generator has inconsistent paths generation
- Production build fails for nextjs client HOT 2
- Vue generators produce invalid names for scoped slots HOT 4
- RFC: Future Enhancements for create-client
- "Cannot stringify arbitrary non-POJOs" error in Nuxt projects HOT 2
- The requested module does not provide an export named 'Ref' in Nuxt Form HOT 1
- Custom generators are not working HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-client.