Hi Filippo, I've prepared a brief document and a very basic example using the "implicit grant" flow. Example: https://drive.google.com/file/d/0B29v6b3mGXyUUllZczNYRmsyZ1k/view?usp=sharing Document: https://docs.google.com/document/d/14Bjn6ibrOgmq1P0sx5hDh_U98f5ypLOqUniy7Vpunvg/edit?usp=sharing This is probably the easier one to implement, but if you prefer to use a different grant type just tell me and we can prepare a different example. The example is very basic, using only javascript. If you use php in your laptop you can run it with this command: php -S localhost:3000 If not, you'll need to upload the files to a web server or run it with node, etc... Here are the credentials you'll need to use our Accounts service: *authorization_url*: http://accounts.fundingbox.com/authorize *client_id*: 597867a6e6c736834bd0cd1a *client_secret (not needed if using the implicit grant type)*: mac974348wncw084309du7tcnw084tcw846tndw86tbw The URI to redirect to after the user grants/denies permission is : *http://localhost:3000/authorize <http://localhost:3000/authorize>* If you need to change it you'll have to ask me to do it. After the user granted permission you'll receive and access_token and you should use it to call our API to get the user details like the email, username, etc... This can be done calling this REST method: *(GET) http://api.fundingbox.com/users/me <http://api.fundingbox.com/users/me>* (including a header "Authorization": access_token) If you need any help or examples to implement this just tell me :) Regards, Jorge On Wed, Jul 26, 2017 at 10:59 AM, Jorge Fernandez <jorge at fundingbox.com> wrote: > Hi Filippo, sorry for my late response, I'm been out since friday. > > We have and OAuth2 authentication service with the following grant types: > > Authorization code grant > Implicit grant > Resource owner credentials grant > Client credentials grant > Refresh token grant > > I guess the simplest implementation would be use the "implicit grant" > option, since it's quite simple to implement from scratch. > We are now preparing some documentation and examples, and I hope to sent > them to you during the day. > > Regards, > Jorge > > > On Tue, Jul 25, 2017 at 7:03 PM, Filippo Giuffrida < > filippo.giuffrida at eng.it> wrote: > >> Dear Jorge, >> >> did you receive the following email, that I sent to >> fiware-fia-fundingbox-integration at lists.fiware.org ? >> >> Please, could you let us know ? >> >> Thank you in advance >> >> Best Regards >> *Filippo* >> >> -------- Messaggio Inoltrato -------- >> Oggetto: SSO integration >> Data: Mon, 24 Jul 2017 16:11:09 +0200 >> Mittente: Filippo Giuffrida <filippo.giuffrida at eng.it> >> <filippo.giuffrida at eng.it> >> A: fiware-fia-fundingbox-integration at lists.fiware.org >> >> >> Dear Jorge, >> >> as Giovanni wrote in a previous mail, one of the first steps of the our >> integration should be: >> >> - Integration with FundingBox via OAuth 2.0 or CAS (to be finally >> agreed, after information sent by Jorge) >> >> Currently our tool doesn't provide a native module to use OAuth 2.0 as >> SSO system, so we should develop it from scratch. >> >> An alternative route that allows us to reduce the time for putting the >> SSO into operation is the use of CAS. >> <https://en.wikipedia.org/wiki/Central_Authentication_Service> >> >> Does FundingBox implement the CAS protocol ? >> >> Please, could you let us know ? >> >> Thank you in advance >> >> Best Regards >> >> *Filippo* >> >> >> -- >> *Filippo Giuffrida* >> Researcher, Member of the Public Administration Innovation Unit >> Research and Development Lab. >> filippo.giuffrida at eng.it >> >> *Engineering Ingegneria Informatica spa* >> Viale Regione Siciliana N.O. n.7275 >> 90146, Palermo (Italy) >> Direct phone +39 - 091 7511842 <+39%20091%20751%201842> >> Operator +39 - 091 7511711 <+39%20091%20751%201711> >> www.eng.it >> -- >> *Filippo Giuffrida* >> Researcher, Member of the Public Administration Innovation Unit >> Research and Development Lab. >> filippo.giuffrida at eng.it >> >> *Engineering Ingegneria Informatica spa* >> Viale Regione Siciliana N.O. n.7275 >> 90146, Palermo (Italy) >> Direct phone +39 - 091 7511842 <+39%20091%20751%201842> >> Operator +39 - 091 7511711 <+39%20091%20751%201711> >> www.eng.it >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-fia-fundingbox-integration/attachments/20170726/2fb2065e/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy