Why is there an “Authorization Code” flow in OAuth2 when “Implicit” flow works so well?

With the “Implicit” flow the client (likely a browser) will get a access token, after the Resource Owner (i.e. the user) gave access. With the “Authorization Code” flow however, the client (usually a web server) does only get an authorization code after the Resource Owner (i.e. the user) gave access. With that authorization code the … Read more

How to secure MongoDB with username and password

I want to set up user name & password authentication for my MongoDB instance, so that any remote access will ask for the user name & password. I tried the tutorial from the MongoDB site and did following: use admin db.addUser(‘theadmin’, ‘12345’); db.auth(‘theadmin’,’12345′); After that, I exited and ran mongo again. And I don’t need … Read more

What are the main differences between JWT and OAuth authentication?

I have a new SPA with a stateless authentication model using JWT. I am often asked to refer OAuth for authentication flows like asking me to send ‘Bearer tokens’ for every request instead of a simple token header but I do think that OAuth is a lot more complex than a simple JWT based authentication. … Read more

What’s the difference between OpenID and OAuth?

I’m really trying to understand the difference between OpenID and OAuth? Maybe they’re two totally separate things? 2Best Answer 21 OpenID is about authentication (ie. proving who you are), OAuth is about authorisation (ie. to grant access to functionality/data/etc.. without having to deal with the original authentication). OAuth could be used in external partner sites … Read more