Created
February 8, 2018 08:37
-
-
Save sbose78/ae594bd1cfc1903a0d1d6389b0e05954 to your computer and use it in GitHub Desktop.
auth tenant https://github.com/fabric8-services/fabric8-auth/blob/master/account/init_tenant.go#L41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func createClient(ctx context.Context, config tenantConfig) (*tenant.Client, error) { | |
u, err := url.Parse(config.GetTenantServiceURL()) | |
if err != nil { | |
return nil, err | |
} | |
c := tenant.New(client.HTTPClientDoer(http.DefaultClient)) | |
c.Host = u.Host | |
c.Scheme = u.Scheme | |
c.SetJWTSigner(goasupport.NewForwardSigner(ctx)) | |
return c, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment