-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pluggable authentication in the grid #3058
Changes from 23 commits
5b9d728
b7665d3
d09031b
230cad9
4679fd7
3433af8
0fafaef
8e02033
7a27a54
9f9bee9
b0922b9
5c9387d
bfe508d
be32c5b
81e3a8b
32f8fe5
eb4af3a
c9580f7
5af22a0
1f09667
f3bef97
e33c0c2
d20d608
2841623
98db717
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,22 @@ image.processors = [ | |
"com.gu.mediaservice.lib.cleanup.GuardianMetadataCleaners", | ||
"com.gu.mediaservice.lib.cleanup.SupplierProcessors$" | ||
] | ||
|
||
authentication.providers { | ||
machine { | ||
className = "com.gu.mediaservice.lib.auth.provider.ApiKeyAuthenticationProvider" | ||
config { | ||
# authKeyStoreBucket = <s3-bucket-with-api-keys> | ||
} | ||
} | ||
# TODO: short term we put panda here for backwards compatibility but the default provider should be something better | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor point: lets say something like "the default provider should be something that involves zero configuration for a simple test setup", just to help any future archaeologists infer what we mean by "better" here |
||
user { | ||
className = "com.gu.mediaservice.lib.guardian.auth.PandaAuthenticationProvider" | ||
config { | ||
# all of the things relating to pan domain auth (these are currently sensibly defaulted in code) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Worth saying something like "sensibly defaulted for Guardian usage"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I kind of figured that's implicit in that the provider is Guardian specific, but I will make that clearer. |
||
# panda.system = media-service | ||
# panda.bucketName = <s3-bucket-with-config> | ||
# panda.settingsFileKey = <s3-key-with-config> | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯