Skip to content
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

Only allow machine users to call the registration endpoint #342

Merged
merged 4 commits into from
Jun 24, 2022

Conversation

alexwlchan
Copy link
Contributor

No description provided.

Copy link
Contributor

@melanierogan melanierogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really appreciate the clear notes on the approach

// - The subject field will be of the form "client ID@clients",
// e.g. "sub": "123@clients"
//
// This is belt-and-braces checking; we already trust the JWT. We want
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Wellcome Collection
Copyright (c) 2020-2022 Wellcome Collection
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could never have guessed that there is no agreed correct way to do something straightforward with a FOSS license

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, haha, I just did this to trigger the pre-commit hook, but apparently it only passes modified files to prettier. 🤷‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants