richardschneider / yappy

Yet another REST API server howling at the moon with JSON
MIT License
2 stars 0 forks source link

Trusted authn services #137

Closed richardschneider closed 8 years ago

richardschneider commented 8 years ago

Allow an authentication service #129 to also return authorization #83 information (user.roles and user.permissions).

Some authentication services can be trusted to also return authz info for a user, such as stormpath. Social authn services such as Google or Facebook should not be trusted for authz info.

Add trusted_for_authorization to an authentication service's options. If true, then user roles and permissions are accepted from it.