comparison Apache-License-2.0.txt @ 6383:06398585de03

auth: track API key used for authentication in AuthUser This allows us to define only once how an API key is passed to the app. We might e.g. allow API keys to be passed in an HTTP header; with this change, we only need to update the code in one place. Also change the code to verify up front that the API key resolved to a valid and active user, so LoginRequired doesn't need to do that. Also return plain 403 Forbidden for bad API keys instead of redirecting to the login form, which makes more sense for non-interactive clients (the typical users of API keys).
author Søren Løvborg <sorenl@unity3d.com>
date Thu, 10 Nov 2016 20:38:40 +0100
parents fd2dff0588bc
children
comparison
equal deleted inserted replaced
6382:245b4e3abf39 6383:06398585de03