Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Memcache for cert #62

Closed
ghost opened this issue Feb 28, 2015 · 3 comments
Closed

Memcache for cert #62

ghost opened this issue Feb 28, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Feb 28, 2015

https://github.com/GoogleCloudPlatform/go-endpoints/blob/master/endpoints/auth.go#L191
namespacedContext, err := appengine.Namespace(c, certNamespace)
// The certNamespace is static "__verify_jwt"

https://github.com/GoogleCloudPlatform/go-endpoints/blob/master/endpoints/auth.go#L198
_, err = memcache.JSON.Get(namespacedContext, DefaultCertURI, &certs)
The DefaultCertURI is static "https://www.googleapis.com/service_accounts/v1/metadata/raw/federated-signon@system.gserviceaccount.com"

Different user will save and get their cert in the same memcache.

Please let me know if I am wrong. Thanks in advance.

@x1ddos
Copy link
Contributor

x1ddos commented Feb 28, 2015

What do you mean? I think you are wrong.

@dhermes
Copy link
Contributor

dhermes commented Feb 28, 2015

That CERT is for checking all the ID tokens, which have their 3rd part (the signature in a JWT) signed by it.

@ghost
Copy link
Author

ghost commented Mar 2, 2015

Hi Danny,

Thank you for your clarification. Sorry my bad, CERT == certificate.

2015-03-01 2:59 GMT+08:00 Danny Hermes notifications@github.com:

That CERT is for checking all the ID tokens, which have their 3rd part
(the signature in a JWT) signed by it.


Reply to this email directly or view it on GitHub
#62 (comment)
.

@x1ddos x1ddos closed this as completed Mar 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants