Exemplo n.º 1
0
func makeAuth() *uaa.UAA {
	env := config.NewEnvironment()
	auth := uaa.NewUAA(env.LoginHost, env.UAAHost, env.UAAClientID, env.UAAClientSecret, "")
	auth.RedirectURL = env.Domain + "/sessions/create"
	auth.Scope = "openid,cloud_controller.permissions,cloud_controller.read,cloud_controller.write"
	auth.AccessType = "offline"
	auth.VerifySSL = env.VerifySSL
	return &auth
}
Exemplo n.º 2
0
func (app Application) UAAClient(env config.Environment) uaa.UAA {
	auth := uaa.NewUAA(env.LoginHost, env.UAAHost, env.UAAClientID, env.UAAClientSecret, "")
	auth.RedirectURL = env.Domain + "/sessions/create"
	auth.Scope = "openid,cloud_controller.permissions,cloud_controller.read,cloud_controller.write"
	auth.AccessType = "offline"
	auth.VerifySSL = env.VerifySSL

	return auth
}