slavab89 / oauth2-server-example-mongodb Goto Github PK
View Code? Open in Web Editor NEWExample for using node-oauth2-server with a mongodb backend
License: MIT License
Example for using node-oauth2-server with a mongodb backend
License: MIT License
So after creating a working example for this i now need to start working with it :)
The question is what is the correct flow.
My architecture is going to be something like the following:
https://dglozic.files.wordpress.com/2014/10/micro-authentication.png
Meaning that i'll have a web application that's running on some nodeJS server, and i'll have this project on a different server that should take care of user authentications (and later on services)
So how will it work? Say i'm going into my site for the first time. Obviously i dont have an access token (as a user). So i click on the login button. Now there are 2 options:
Option 2 seems to be impossible and incorrect but then i dont see when i will need to use the response_type=code request.
I might be totally off in my thinking and i will really be glad if someone could straighten things up for me.
Hey,
Thanks a lot, for the example repo, Its been really helpful. But I am getting stuck while making the flow. I have a question regarding this, can you please answer it?
While using authorization_code
grant flow, it is asking for access token
in the request, which will be retrieved using client_credential
grant flow. I want to know:
is there some configuration is given to us using which we can just use
authorization_code
flow withoutaccess_token
(essentially, without authenticating the client)?".
Thanks.
Hi,
I have played around to learn more about oauth and used you repo as an inspiration.
First I want to say thank you for this and it has been helpful for me.
However, of course I have some question I hope you could help me with?
I can play around and get it to work except where I need to base64 encode the clientID and
clientSectrets.
I'm using the online tool https://www.base64encode.org/ without success.
Do you know what it could be? :-)
I am trying to make a request to /oauth/authorize with the client_id, client_secret, grant_type, response_type and redirect_uri but it keeps throwing a 401 unauthorized error. I shoudn't need to authenticate in order to test this should I?
I am getting this Error on using Authorize Code Grant.
getClient e4bd05f16cddd3cb0642cb6c81bed468 null
i am entering the client_id correct but it is returning null everytime.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.