auth

Paddy 2015-12-14 Parent:fc68085eb40d

181:b7e685839a1b Go to Latest

auth/services/authd.json

Break out scopes and events. This repo has gotten unwieldy, and there are portions of it that need to be imported by a large number of other packages. For example, scopes will be used in almost every API we write. Rather than importing the entirety of this codebase into every API we write, I've opted to move the scope logic out into a scopes package, with a subpackage for the defined types, which is all most projects actually want to import. We also define some event type constants, and importing those shouldn't require a project to import all our dependencies, either. So I made an events subpackage that just holds those constants. This package has become a little bit of a red-headed stepchild and is do for a refactor, but I'm trying to put that off as long as I can. The refactoring of our scopes stuff has left a bug wherein a token can be granted for scopes that don't exist. I'm going to need to revisit that, and also how to limit scopes to only be granted to the users that should be able to request them. But that's a battle for another day.

History
paddy@176 1 {
paddy@176 2 "kind":"Service",
paddy@176 3 "apiVersion":"v1",
paddy@176 4 "metadata":{
paddy@176 5 "name":"ducky-authd",
paddy@176 6 "labels":{
paddy@176 7 "name":"authd",
paddy@176 8 "context": "ducky",
paddy@176 9 "repo": "secondbit--authd",
paddy@176 10 "role": "auth"
paddy@176 11 }
paddy@176 12 },
paddy@176 13 "spec":{
paddy@176 14 "ports": [
paddy@176 15 {
paddy@176 16 "name": "http",
paddy@176 17 "port": 80,
paddy@176 18 "targetPort": "http"
paddy@176 19 }
paddy@176 20 ],
paddy@176 21 "selector":{
paddy@176 22 "name":"authd",
paddy@176 23 "context": "ducky",
paddy@176 24 "repo": "secondbit--authd",
paddy@176 25 "role": "auth"
paddy@176 26 },
paddy@176 27 "type": "LoadBalancer"
paddy@176 28 }
paddy@176 29 }