Getting a user's username through the Authorization Code Flow [php]

The flow you describe seems correct, so I’m unsure exactly what’s going wrong. Are you making sure to exchange the auth code for an oauth token? Can you give more details on the call you’re making to kraken?