hongming 看样子好像是console有问题。。。。
我在master节点获取到了acces_token
curl -X POST http://192.168.5.64:30881/kapis/iam.kubesphere.io/v1alpha2/login -H ‘Content-Type: application/json’ -d ‘{“username”:“admin”,“password”:“P@88w0rd”}’
{
“access_token”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImFkbWluQGt1YmVzcGhlcmUuaW8iLCJpYXQiOjE1OTY0NDUyOTksInVzZXJuYW1lIjoiYWRtaW4ifQ.ZYfgHNc3l9hWa9T9GJTYKQ5_8xLHJZghiYqTljVTe3s”
}
[root@master ]# curl -X POST http://192.168.5.64:30881/kapis/iam.kubesphere.io/v1alpha2/login -H ‘Content-Type: application/json’ -d ‘{“username”:“jinchen”,“password”:“Jl920529″}’
{
“access_token”: “eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6ImppbmNoZW5AMTYzLmNvbSIsImlhdCI6MTU5NjQ0NTY2OSwidXNlcm5hbWUiOiJqaW5jaGVuIn0.tQ7vYU6wqB4vi-K19yHidIEmqFxcEfOz8Q-dNwH0ouM”
}
两个账户都可以获取到