Comments (2)
I fixed the permission error with a simple chmod on the .restish folder.
The latest is that when I try run inside of a docker container, the -H flag to pass the access token doesn't seem to be working.
For example this command works for me out side of docker and I get a list of client records:
restish a-ci -H "Authorization: bearer eyJhbGciOiJ…” tenant-client-controller-find 1
but when I run it inside my container, I am prompted to log in:
`Open your browser to log in using the URL:
https://a-ci.labshare.org/_api/auth/ls/authorize?audience=https%3A%2F%2Fa-ci.labshare.org%2F_api%2Fauth%2Fls&client_id=auth-ui2&code_challenge=cQEM37t-W79EcUEla8hrsOSZZw4v0TFZzED7Zdhlby8&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A8484%2F&response_type=code&scope=openid+profile+email
Alternatively, enter the code manually:
Unable to get a code. See browser for details. Aborting!
`
Any theory about how the docker envonment could be effecting the processing of the bearer token ?
from restish.
Found the issue - the latest published build (0.7) does not have the fix for the -H issue. Also needed to make sure docker had a linux x86 build and not my local osx build
from restish.
Related Issues (20)
- Add a help mode which excludes global flags
- Refreshing API definition interacts strangely with CLI flags and CachedTransport HOT 1
- gron output fails on keys containing "." HOT 2
- Question: Is it possible to send multipart/form-data request? HOT 2
- runtime error: invalid memory address with specific OpenAPI specs HOT 1
- separating commands by tags HOT 1
- Question: is it possible to generate request body from open api examples
- Header case modification makes restish unusable for some APIs with case senstive headers
- Downloading Restish on Windows? HOT 1
- http-basic password prompt is shown clear text
- Create API Specific Commands from PostgREST
- Support Flags for positional arguments and request bodies HOT 3
- Getting `Caught error: runtime error: invalid memory address or nil pointer dereference` trying to import basic OpenAPI spec HOT 1
- (Feature Request) - Allow restish to be used in non-interactive mode HOT 2
- Feature request: Per project configuration
- Allow base path elements to be ignored
- Stack Overflow error when renderSchemaInternal() is called
- Provide example using CLI Shorthand with API short name HOT 1
- Feature Request: make linkparsers take response and request as arguments
- Including '%' generates `invalid memory address or nil pointer dereference`
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 restish.