101 karma · joined Dec 10, 2015 (10y ago) · 65 submissions
1.
Magic link login library for Azure AD B2C(github.com ↗)
1 points · by mswehli · 3y ago · discuss
2.
I've launched a monthly subscription app development service(uncubator.co ↗)
2 points · by mswehli · 3y ago · discuss
3.
The Donkey Generation(donkeygen.com ↗)
2 points · by mswehli · 3y ago · discuss
4.
Punishing Risk Guarantees Failure(blog.moodio.co.uk ↗)
7 points · by mswehli · 6y ago · discuss
5.
Implementing Twitter-Esque Profile URLs in Asp.net Core(blog.moodio.co.uk ↗)
1 points · by mswehli · 6y ago · discuss
6.
Show HN: WeApply – A human powered job finder service(weapp.ly ↗)
1 points · by mswehli · 6y ago · discuss
7.
Never admit to your flaws during a final interview(blog.weapp.ly ↗)
3 points · by mswehli · 6y ago · discuss
comment 6y ago · link · parent
comment 6y ago · link · parent
Literally the first sentence in the definition. If you prefer take a look at the definition on OAuth definition at https://auth0.com/docs/scopes/current/oidc-scopes. Now which part of that exactly anything about authenticating the user or goes against what i've said? You'd be well advised to take your own advice.
comment 6y ago · link · parent
quite common in mine, especially when dealing with service oriented architecture. the public api is given a token, and it should use that token to authorize itself to use other services, or a cron job that performs actions on behalf of users.
> A user token tells you (the relying party) that the user has been authenticated to the satisfaction of the issuer (often Google, Microsoft, Facebook but it can be anyone inclusing your own authority). You can be sure the token has been issued by the issuer due to the signature. If you trust the issuer then you can trust the time-limited token.
But my point is (and the point of the article) is thats not what the token tells you. The token tells you (and the reason its called a bearer token) that whoever holds this token, can perform the list of actions defined within the scopes array. Which is completely different to saying we are 100% sure the user is who they say they are. If the token told you the user is who they say they are, then why do you even need scopes? You could just assume the user is allowed to do anything they wanted to to their own resources.
comment 6y ago · link · parent
Whether its delegation or authorization, a JWT access token is the result. Keep in mind this isn't about the mechanism to how the IAM decides whether or not to issue a JWT token and to whom, but just what that JWT token means to the endpoint that will consume the token and decide what to do based on it. > Services which are acting on the user's behalf (delegated) can pass the user's claims through too; can pass the whole JWT through
Services acting on a users behalf should not be resending the same JWT token, if they do you've set it up incorrectly. Each service has its own unique identifier, as part of the audience claim. A service that gets a JWT token with a different identifier should reject it, even if the JWT token is valid.
comment 6y ago · link · parent
comment 6y ago · link · parent
For example, a user signs in and gets a JWT token that has the permission Delete.Everything which in this example is the permission required to delete all a users resources, the client takes this and passes it to the backed. On the backend however, the user might not even be allowed to delete everything. Maybe they're under investigation, or maybe this particular service just doesn't allow it. But its not the role of the JWT to tell you whether or not this particular user is allowed to perform that action, all the JWT token tells you is that this user has allowed the bearer of the JWT token to perform that action on their behalf. But, doesn't mean the user is allowed to perform that action to begin with, so the user has given the client permission to perform an action they themselves aren't allowed to perform.
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
17.
JWT tokens authenticate the client, not the user(blog.moodio.co.uk ↗)
31 points · by mswehli · 6y ago · 23 comments
18.
It's Always a Good Time for a Salary Renegotiation(hackernoon.com ↗)
2 points · by mswehli · 6y ago · discuss
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
Swift however was released to a huge population of existing iOS and Mac developers, in releasing Swift Apple basically set a timer on the end of life of Object C and it meant that all developers at some point or another HAVE to learn swift to continue having a healthy career as iOS/Mac developers or be relegated to maintaining legacy code (which usually doesnt last long for client applications). So they release it, instant exposure to all existing Objective C programmers, instant interest from nearly everyone in their target audience (existing developers), and they're all in a rush to begin learning about it as staying relevant depends on it. However once a large subset of existing developers have already learnt about it, interest dies down again and it evens out at a rate you would expect from any other language based on interest from NEW developers.
comment 6y ago · link · parent