Code Monkey home page Code Monkey logo

Comments (6)

pacphi avatar pacphi commented on May 30, 2024

Would need to provide an option to configure how the client authenticates. Presently, OpsmanAccessTokenProvider is implemented to support Password grant. To address your request we would need to implement SAML2 Bearer Grant.

An alternate implementation option might be the Client credentials grant.

The cf-java-client upon which cf-butler depends for this interaction does not support SAML2 as far as I can tell. See this package for supported request/response types. May not be a limitation though... we'd need to (custom) implement a new token request/response mapping.

from cf-butler.

pacphi avatar pacphi commented on May 30, 2024
  • Obtaining an assertion may be challenging to do consistently based on IdP.

from cf-butler.

pacphi avatar pacphi commented on May 30, 2024

@erboucherie Please try out this branch to see if it meets your needs. Opted to add support for client_credentials token grant.

from cf-butler.

erboucherie avatar erboucherie commented on May 30, 2024

Hello @pacphi . I just tried it , and it works perfectly . The only comment i could have is that it would be nicer if we could set those new parameters via Environment variables (om.grantType , om.clientSecret) like we do for om.enabled for instance .
That will make the configuration easier than setting different application-{env}.yml file .
But anyway , it works .
Thanks a lot for your velocity .
Best regards
Eric

from cf-butler.

pacphi avatar pacphi commented on May 30, 2024

@erboucherie Thanks for catching that. We just need to add the new properties consumed by https://github.com/pacphi/cf-butler/blob/master/src/main/java/io/pivotal/cfapp/config/OpsmanSettings.java to https://github.com/pacphi/cf-butler/blob/master/src/main/java/io/pivotal/cfapp/config/ButlerCfEnvProcessor.java. Will take care of that.

from cf-butler.

pacphi avatar pacphi commented on May 30, 2024

This PR closes the issue.

from cf-butler.

Related Issues (20)

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.