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

Message level encryption support? #207

Open
matti777 opened this issue Jul 11, 2019 · 2 comments
Open

Message level encryption support? #207

matti777 opened this issue Jul 11, 2019 · 2 comments

Comments

@matti777
Copy link

Hello, I was wondering if there is a nifty way to inject message-level encryption? I am using (and loving) this library for several projects and am now facing implementing this: https://developer.signicat.com/documentation/finnish-trust-network/full-message-level-encryption-for-ftn/

If not, any bright ideas how to add support for it without breaking the current functionality? - I might be able to submit a PR for it after the summer.

I would assume there will be similar needs for message-level encryption arising soon elsewhere too.

@ericchiang
Copy link
Collaborator

This is the upstream spec as far as I can tell: https://openid.net/specs/openid-connect-messages-1_0-20.html

golang.org/x/oauth2 is the package that currently handles the OAuth2 requests (auth request, token request). This would likely be something to let the RemoteKeySet returned by the Provider encrypt data, then the user would be able sub out their own auth and token requests instead of having golang.org/x/oauth2 do it.

What other providers do this? Any idea what attack it's attempting to prevent?

@matti777
Copy link
Author

As for the former, I have no answer for this. As for the latter, I am guessing mostly paranoia..

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

No branches or pull requests

2 participants