获取pat文件总是失败。请问授权登录这块有详细的开发文件么?
具体请求
curl --location --request POST 'http://127.0.0.1:8090/apis/api.console.security.halo.run/v1alpha1/users/-/personalaccesstokens' \
--header 'Accept: application/json' \
--header 'Authorization: Basic YWRtaW46YWRtaW4=' \
--header 'Content-Type: application/json' \
--data-raw '{
"spec": {
"name": "My PAT",
"description": "This is my first PAT.",
"expiresAt": "2023-09-15T02:42:35.136Z"
"roles": [""]
}
}'
我是利用postman等工具调用接口