Coder Social home page Coder Social logo

batemapf / uaa-credentials-broker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloud-gov/uaa-credentials-broker

0.0 1.0 0.0 50 KB

Broker that allows users to provision and deprovision UAA users and clients

License: Other

Shell 7.80% Go 92.20%

uaa-credentials-broker's Introduction

Cloud Foundry UAA Credentials Broker

Code Climate

This service broker allows Cloud Foundry users to provision and deprovision UAA users and clients. UAA users managed by the broker are scoped to a given organization and space and can be used to push applications when password authentication is needed--for example, when deploying from a continuous integration service. UAA clients can be used to leverage UAA authentication in tenant applications.

Usage

UAA users

  • Create service instance:

    $ cf create-service cloud-gov-service-account space-deployer my-service-account
  • Get dashboard link from service instance:

    $ cf service my-service-account
    
    Service instance: my-service-account
    Service: cloud-gov-service-account
    ...
    Dashboard: https://fugacious.18f.gov/m/k3MtzJWVZaNlnjBYJ7FUdpW2ZkDvhmQz
  • Retrieve credentials from dashboard link.

  • To delete the acount, delete the service instance:

    $ cf delete-service my-service-account

UAA clients

  • Create service instance:

    $ cf create-service cloud-gov-identity-provider oauth-client my-uaa-client \
        -c '{"redirect_uri": ["https://my.app.cloud.gov"]}'
  • Retrieve credentials and deprovision instance as above

Deployment

  • Create UAA client:

    $ uaac client add uaa-credentials-broker \
        --name uaa-credentials-broker \
        --authorized_grant_types client_credentials \
        --authorities scim.write,uaa.admin,cloud_controller.admin \
        --scope uaa.none
  • Update Concourse pipeline:

    fly -t ci set-pipeline -p uaa-credentials-broker -c pipeline.yml -l credentials.yml

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

uaa-credentials-broker's People

Contributors

afeld avatar cnelson avatar jmcarp avatar mogul avatar rogeruiz avatar sharms avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.