Comments (4)
配置文件:
默认路径 ~/.bestchains/config.yaml
,可以通过--config
参数修改
样例如下:
auth:
enable: false # 是否启用oidc验证,也可通过 --enable-auth 参数修改
expiry: 1683428084 # oidc token过期时间unix时间戳
idtoken: eyJhbGciOiJSUzI1NiIsImtpZCI6ImVlZWIyZWUyNzA4ZjU0ZDRkODhjMTMyMzllY2EwYzc2NjM1ODE4NDgifQ.eyJpc3MiOiJodHRwczovL3BvcnRhbC4xNzIuMjIuOTYuMjA5Lm5pcC5pby9vaWRjIiwic3ViIjoiQ2doaWFuZHpkMkZ1WnhJR2F6aHpZM0prIiwiYXVkIjoiYmMtY2xpIiwiZXhwIjoxNjgzNDI3ODY2LCJpYXQiOjE2ODMzNDE0NjYsImF0X2hhc2giOiJxdGhPcmgwa2t1VzRUMDY0MDZwZ1pRIiwiY19oYXNoIjoiejBhczN6MW9QcFJOallvM1JtVWpPZyIsImVtYWlsIjoiYWRtaW5AdGVueGNsb3VkLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJncm91cHMiOlsiaWFtLnRlbnhjbG91ZC5jb20iLCJvYnNldmFiaWxpdHkiLCJyZXNvdXJjZS1yZWFkZXIiLCJiZXN0Y2hhaW5zIl0sIm5hbWUiOiJiandzd2FuZyIsInByZWZlcnJlZF91c2VybmFtZSI6ImJqd3N3YW5nIiwicGhvbmUiOiIiLCJ1c2VyaWQiOiJiandzd2FuZyJ9.OoRvS8lTV5T7hX6IXTIzt9Ne-A44ix10-sYbKOg1Bfk7VX3_WaueMDFjALC7qJ5PZG-m6k_iQZn8dSOgMihwMQAfzJxxpoRbWABSJBS72UZSB18zZKK4mLPKAcEtZUYPFcuQhbR9r12FnokvNnEdd6BrWaIIEGQaYrJgix2HQRdDd6t8s-V3et0dvuWrYLv8HiD06KBUUYNnt1SCI6kuzbzpTLNQFNU86mS7Uq58PmXwXp_MwXZ_PnvmV_GDmg5eEgNLPRmXXryvc4o6Bp_FY5GR8amDqKMwt0m6MWhMOPH2ucYppCi7cUsns-z5068vhDrmTDjguQ6lmwC1m8k-0w
issuerurl: https://portal.172.22.96.209.nip.io/oidc
refreshtoken: ChllY3N2a2d6dTM3d2Qzc2F6dnhxb3Q0NHIzEhlhaTZiYnQ0eWZoN3NzcGpjamIyZ2N6eWZ1
saas:
depository:
server: https://bc-saas.172.22.96.209.nip.io
使用展示
1. 无验证
2. 有验证,第一次登陆
3. 有验证,但是token未失效。
from bc-cli.
@Abirdcfly 如果我们需要访问k8s资源应该怎么使用这个config?比如,bc-cli get orgs
from bc-cli.
@Abirdcfly 如果我们需要访问 k8s 资源应该怎么使用这个 config?比如,
bc-cli get orgs
目前没有这个功能,需要配置里加cluster的地址。安全考虑的话,可能还需要配置证书,因为k8s的证书大部分情况下是自签的。
from bc-cli.
@Abirdcfly 如果我们需要访问 k8s 资源应该怎么使用这个 config?比如,
bc-cli get orgs
目前没有这个功能,需要配置里加cluster的地址。安全考虑的话,可能还需要配置证书,因为k8s的证书大部分情况下是自签的。
👌🏻
from bc-cli.
Related Issues (19)
- add depository cli HOT 7
- commands to operate our bestchain resources
- commands to manage wallet accounts HOT 2
- able to get channel's connection profile in json/yaml format
- refine config file HOT 8
- bc-cli failed to get orgs when using --enable-auth
- proposal-vote get/list
- get network
- get chaincodebuild
- get chaincode
- get endorsepolicy
- get
- get, list, update vote
- add channel, chaincodebuild, chaincode command doc
- release with pre-built binaries HOT 1
- cli supports downloading certificates HOT 2
- `chaincode` and `chaincodebuild` args de-duplication
- command don't panic
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 bc-cli.