cloudfoundry-community / go-uaa

Licence: Apache-2.0 license
UAA API Client Library

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to go-uaa

uaa-cli
CLI for UAA written in Go
Stars: ✭ 22 (+57.14%)
Mutual labels:  cloudfoundry, uaa
akka-react-cloudant
A Soccer Dashboard created by scraping EPL website using Akka backend and ReactJS frontend and IBM Cloudant for object storage. IBM Cloud Foundry is used to host both frontend and backend app.
Stars: ✭ 21 (+50%)
Mutual labels:  cloudfoundry
credhub
CredHub centralizes and secures credential generation, storage, lifecycle management, and access
Stars: ✭ 203 (+1350%)
Mutual labels:  cloudfoundry
routing-release
This is the BOSH release for cloud foundry routers
Stars: ✭ 36 (+157.14%)
Mutual labels:  cloudfoundry
cf-tools
Useful shell scripts for Cloud Foundry API v2
Stars: ✭ 22 (+57.14%)
Mutual labels:  cloudfoundry
monarch
App-level Chaos Engineering
Stars: ✭ 26 (+85.71%)
Mutual labels:  cloudfoundry
antifreeze
Cloud Foundry CLI plugin to detect if an app doesn't match the manifest
Stars: ✭ 21 (+50%)
Mutual labels:  cloudfoundry
cf-ops-automation
a collaboration framework for operating cloudfoundry and services at scale
Stars: ✭ 21 (+50%)
Mutual labels:  cloudfoundry
scim
Golang Implementation of the SCIM v2 Specification
Stars: ✭ 108 (+671.43%)
Mutual labels:  scim
heroku-buildpack-deno
Heroku Buildpack for Deno
Stars: ✭ 72 (+414.29%)
Mutual labels:  cloudfoundry
spring-cloud-app-broker
Spring Cloud project for implementing service brokers that conform to the Open Server Broker API specification
Stars: ✭ 26 (+85.71%)
Mutual labels:  cloudfoundry
openbrokerapi
A python package for the V2 CF Service Broker API
Stars: ✭ 32 (+128.57%)
Mutual labels:  cloudfoundry
terraform-oci-cf-install
Terraform configurations for bootstrapping a CloudFoundry environment on Oracle Cloud Infrastructure
Stars: ✭ 15 (+7.14%)
Mutual labels:  cloudfoundry
cf-sample-app-spring
Introduction to Cloud Foundry app deployment and management concepts.
Stars: ✭ 30 (+114.29%)
Mutual labels:  cloudfoundry
cf-mysql-plugin
Cloud Foundry CLI MySQL Plugin
Stars: ✭ 35 (+150%)
Mutual labels:  cloudfoundry
loggregator
Archived: Now bundled in https://github.com/cloudfoundry/loggregator-release
Stars: ✭ 61 (+335.71%)
Mutual labels:  cloudfoundry
cf-swagger
Collection of Swagger descriptions and applications for CloudFoundry BOSH
Stars: ✭ 22 (+57.14%)
Mutual labels:  cloudfoundry
PCC-Sample-App-PizzaStore
Example sample application which uses Pivotal Cloud Cache(PCC) as a service on Pivotal Cloud Foundry
Stars: ✭ 18 (+28.57%)
Mutual labels:  cloudfoundry
multiple-deployment-options
Shows how one service can be deployed to multiple deployment options
Stars: ✭ 20 (+42.86%)
Mutual labels:  cloudfoundry
nfs-volume-release
No description or website provided.
Stars: ✭ 17 (+21.43%)
Mutual labels:  cloudfoundry

go-uaa Travis-CI godoc Report card

Overview

go-uaa is a client library for the UAA API. It is a go module.

Usage

Step 1: Add go-uaa As A Dependency

$ go mod init # optional
$ go get -u github.com/cloudfoundry-community/go-uaa
$ cat go.mod
module github.com/cloudfoundry-community/go-uaa/cmd/test

go 1.13

require github.com/cloudfoundry-community/go-uaa latest

Step 2: Construct and Use uaa.API

Construct a uaa.API by using uaa.New(target string, authOpt AuthenticationOption, opts ...Option):

$ cat main.go
package main

import (
	"log"

	uaa "github.com/cloudfoundry-community/go-uaa"
)

func main() {
	// construct the API
	api, err := uaa.New(
		"https://uaa.example.net",
		uaa.WithClientCredentials("client-id", "client-secret", uaa.JSONWebToken),
	)
	if err != nil {
		log.Fatal(err)
	}

	// use the API to fetch a user
	user, err := api.GetUserByUsername("[email protected]", "uaa", "")
	if err != nil {
		log.Fatal(err)
	}
	log.Printf("Hello, %s\n", user.Name.GivenName)
}

Experimental

  • For the foreseeable future, releases will be in the v0.x.y range
  • You should expect breaking changes until v1.x.y releases occur
  • Notifications of breaking changes will be made via release notes associated with each tag
  • You should use go modules with this package

Contributing

Pull requests welcome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].