Add docs for "Using JWT for OAuth2"
Please consider adding docs explaining how to configure JWT authentication with regards to applications and users, for the server and the client.
Ideally this would include an adaption of the API Gateway example, but using with the required client side code integrated into the client-side SDK.
@raymondfeng What do you think? If you can provide example code, I will update docs.
I need to find some time to draft something up.
Would love to see these docs as well.
Last year I wrote up an explanation of Google's JWT OAuth2 implementation to go with code I wrote to explore Google's API and load test connections. I just jumped on the Lookback bandwagon, but would be happy to repurpose my write-up and the "beautiful" flowchart that I made to go with the text.
@wilsonmar That would be fantastic. I look forward to your write-up.
@wilsonmar That would be great. In what format was your article written? I can work with almost anything, but best for me would be Google Doc or just add a page to the LoopBack GitHub wiki: https://github.com/strongloop/loopback/wiki. Then I can move and convert to Confluence on docs.strongloop.com. Thanks!
In my write-up I explain each step of the JWT process and what data goes into it, all illustrated by a gradual-reveal graphic. But I'm embarrassed that I wrote the thing in MS Word and the graphic is in PowerPoint. I can convert the text into wiki markup. What do you recommend that I use to create the graphics? Most importantly, where can I find sample Node.js code to make JWT OAuth2 calls (for Base64, signing, etc.)?
On Tue, Jan 13, 2015 at 10:07 AM, Rand McKinney [email protected] wrote:
@wilsonmar https://github.com/wilsonmar That would be great. In what format was your article written? I can work with almost anything, but best for me would be Google Doc or just add a page to the LoopBack GitHub wiki: https://github.com/strongloop/loopback/wiki. Then I can move and convert to Confluence on docs.strongloop.com. Thanks!
— Reply to this email directly or view it on GitHub https://github.com/strongloop/loopback/issues/789#issuecomment-69779691.
@wilsonmar If you can convert to wiki format, that would be fine... Or you can just upload to Google Drive, and convert to Google Doc format--then I can take it from there (just make sure permissionss are set properly). Or just email me the Word doc and I can convert it... Whichever you prefer.
For the graphics in PowerPoint, you could just take screenshots of them (or save to .png or .jpg from PP if you can--I don't know PP very well) and then include your images into the Gdoc. In the wiki, I think you need to commit the graphics files to the repo, so not sure that's the best way to go. As a last resort, zip up the images and email to me: rand at strongloop dot com. Thanks!
Re: your question
where can I find sample Node.js code to make JWT OAuth2 calls (for Base64, signing, etc.)? @raymondfeng may be able to answer that.
Rand, I'll start by emailing you what I have, but only to show you my starting point. Where do I find your email address?
I say starting point because the coding example I wrote refers to another programming language. Nevertheless, I structured the coding so that someone can just make a call and the rest of the coding is taken care of in the library code. I would think we need to do the same for Node.js developers.
The example API is using Google's URL Shortener API. But I'm excited about this because once someone figures out how to get into Google's API, the same technique can be use to access many other (usually free) services that Google offers. Google keeps adding new ones (and unfortunately also drops them when it doesn't suit their fancy). Google's list of APIs is currently at https://developers.google.com/apis-explorer/#p/
@raymondfend, I searched around and found https://github.com/strongloop/loopback-component-oauth2/blob/master/lib/oauth2-loopback.js
I my example I store API private keys in clear text files. Not good. So I'm also investigating how API keys are managed within node, which is a whole other "can of beans" that is different for each operating system node runs on. I'm looking for a technical partner to help me on this endeavor. Is there an enterprise grade secret key management system that node can use? One is necessary for wide adoption of node within security paranoid organizations (banks, health care, governments, etc.).
My email is rand at strongloop dot com.
Hi guys, any news on this? I think there's a lot of interest in a clear example of JWT with loopback. It would be great to have a detailed app/guide for reference and implementation.... cheers
I've been working on it. Sorry for the delay in converting from the Word file I had it in. I'm hoping for completion next week. Let me know if you'd like to draft.
On Sat, Jan 31, 2015 at 4:41 AM, Jose [email protected] wrote:
Hi guys, any news on this? I think there's a lot of interest in a clear example of JWT with loopback. It would be great to have a detailed app/guide for reference and implementation.... cheers
— Reply to this email directly or view it on GitHub https://github.com/strongloop/loopback/issues/789#issuecomment-72314538.
were you able to complete this ? I am also looking at using jwt with strongloop ;)
any success with this?
Bump. Interested in seeing docs for this as well.
this is a serious long dated bump
@wilsonmar or @raymondfeng Can someone address this? @0candy perhaps you have some thoughts?
@crandmck Did you get the draft from @wilsonmar? Maybe we can take a look and help with the updates.
Hi. I'm sorry I didn't get back to this because I didn't hear back about how to format the doc (GitHub markdown or what)? If someone can point me to an example I can convert my detailed description now in a Word file and PowerPoint file.
On Thu, Jun 30, 2016 at 6:41 AM, Candy [email protected] wrote:
@crandmck https://github.com/crandmck Did you get the draft from @wilsonmar https://github.com/wilsonmar? Maybe we can take a look and help with the updates.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/strongloop/loopback/issues/789#issuecomment-229661273, or mute the thread https://github.com/notifications/unsubscribe/AASUDu-Bb7fDZn3Mm16PVke1FL4w9mCtks5qQ8ePgaJpZM4C5wgE .
Also, (more importantly) I need a developer of the module to answer some questions because I don't think people here want a generic description of JWT, but how Loopback makes use of it. Am I correct?