这里写自定义目录标题
用户
username:chinoukin
password:123456
chinoukin:123456的base64:Y2hpbm91a2luOjEyMzQ1Ng==
basic认证
下面两种方式等价
curl http://chinoukin:123456@localhost:8080/boot
curl -H 'Authorization:Basic Y2hpbm91a2luOjEyMzQ1Ng==' http://localhost:8080/boot
bearer授权访问
下面两种方式等价
curl http://localhost:8765/getPrinciple?access_token=cee3dbcb-7835-4ff8-b67d-477dcd5a2b7f
curl -H 'Authorization:bearer cee3dbcb-7835-4ff8-b67d-477dcd5a2b7f' http://localhost:8765/getPrinciple