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

Header field 'typ' is never set if createheader called. #2

Open
GoogleCodeExporter opened this issue Jun 4, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Instantiate similar to: JsonToken jsonToken = new JsonToken(signer);

2. Fill the object out;

3. Call jsonToken.serializeAndSign();

What is the expected output? What do you see instead?

Should get something like: {"alg":"RS256","typ":"JWT"}

But instead get: {"alg":"RS256"}

What version of the product are you using? On what operating system?

Using trunk (1.0 is similar).

Please provide any additional information below.

Google specifies that for obtaining access tokens on service accounts the "typ" 
field must exist. See 
https://developers.google.com/accounts/docs/OAuth2ServiceAccount#formingheader 
for details.

Original issue reported on code.google.com by [email protected] on 16 May 2013 at 9:42

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

No branches or pull requests

1 participant