Git Product home page Git Product logo

Comments (3)

marsell avatar marsell commented on May 24, 2024

Sorry for the delay.

Okay, here's the deal: if you want to make cloudapi calls using token authentication, you need to provide http-signature details signed using the caller's account (e.g. you need an account for your portal, since the portal is on the other side of the HTTP request). The X-Auth-Token stuffed with the keyapi token contains the details about the user the portal is calling on behalf of.

Basically, your headers would look something like the following:

Authorization: Signature keyId="/<your portal or ops account>/keys/<some portal key>",algorithm="RSA-SHA256" <base64-encoded http-signature chunk>
X-Auth-Token: {"keyid":"<keyapi-generated UUID","data":"<base64 data about the portal's user initiating this call>","version":"0.1.0","hash":"<base64 hash of data>"}

Authorization is the http-signature for your portal. X-Auth-Token is the token provided by keyapi on behalf of the user using your portal.

I hope that clarifies things. My apologies that there are no docs about it. I'll at least improve the big-theory statement at the top of cloudapi's auth.js.

from sdc-cloudapi.

tgross avatar tgross commented on May 24, 2024

@arekinath this issue has been sitting open for a while. Do we have an open JIRA ticket associated with it, or an RFD or mailing list discussion? Or is it safe to close this GitHub issue?

from sdc-cloudapi.

arekinath avatar arekinath commented on May 24, 2024

Safe to close. The keyapi repo was opened up.

from sdc-cloudapi.

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.