Commit ad670f7b authored by liugaoling's avatar liugaoling

authorization

parent 99d5a1d2
......@@ -12,7 +12,7 @@ services:
- REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/data
- REGISTRY_AUTH=token
- REGISTRY_AUTH_TOKEN_REALM=https://tx-fileserver.cloudam.cn:5001/auth
- REGISTRY_AUTH_TOKEN_SERVICE="auth.docker.com"
- REGISTRY_AUTH_TOKEN_SERVICE="CE-Z1"
- REGISTRY_AUTH_TOKEN_ISSUER="AuthService"
- REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/ssl/ssl.pem
- REGISTRY_HTTP_TLS_CERTIFICATE=/ssl/ssl.pem
......
package main
import "../utils"
import (
"../utils"
"github.com/cesanta/docker_auth/auth_server/authz"
)
func main() {
utils.HttpLogin("lglhope", "123456789")
// utils.HttpLogin("lglhope", "123456789")
authRequestInfo := &authz.AuthRequestInfo {
Account: "wln"
Type: ""
Name: "wln/apple"
Service: "CE-Z1"
IP: nil
Actions: []
Labels: nil
}
utils.HttpAuth(authRequestInfo)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment