Bearer token in header as Basic token? – Does that violate the RFC6749 spec?

In a header you can have—for example—"Authorization: Basic " xor "Authorization: Bearer ".
If I use my Bearer token as Basic, then can this endpoint double as a give me fresh tokens for this access token"?
https://… Continue reading Bearer token in header as Basic token? – Does that violate the RFC6749 spec?

What are the security implications of receiving a secret (e.g. OAuth BEARER) token via cookie vs. Authorization header?

I have seen applications use both the Authentication HTTP header, as well as a cookie, or sometimes even both, to store & transmit BEARER tokens (JWT) when they send requests. For example, I am currently looking at an application where… Continue reading What are the security implications of receiving a secret (e.g. OAuth BEARER) token via cookie vs. Authorization header?

Is it safe to pass Google ID tokens to third-party services for user authentication?

I’m working on an app called AwesomeApp that uses Google Sign-In for user authentication. When users sign in, the app receives a Google ID token.
We are integrating with a third-party service, ScoreboardService, which also needs to identif… Continue reading Is it safe to pass Google ID tokens to third-party services for user authentication?

Why shouldn’t I use the OAuth password grant if I have to implement a custom username+password login anyway?

I’m building a web REST API. Users must be able to authenticate themselves to this API.
I don’t know ahead of time which clients will want to use the API. I want to allow for the possibility of anyone creating their own client, like a cust… Continue reading Why shouldn’t I use the OAuth password grant if I have to implement a custom username+password login anyway?

OAuth 2.0 – why is the state parameter needed in order to prevent CSRF at authorization code login flow?

I’m having a really hard time understanding why the state should be used to protect against CSRF at the OAuth 2.0 login flow.
Imagine I have an Authorization Server with a legitimate client registered with the client_id of my-app-123 and t… Continue reading OAuth 2.0 – why is the state parameter needed in order to prevent CSRF at authorization code login flow?

Open Banking: How can a TPP integrate their mobile app with a bank’s APIs without breaking the security profile

I’ve been researching UK Open Banking and getting to know the in and outs of the FAPI advanced security profile.
My question is based on the following premises (and I think I’m probably either misunderstanding something or missing a key fa… Continue reading Open Banking: How can a TPP integrate their mobile app with a bank’s APIs without breaking the security profile