Closed beardpotatocat closed 7 years ago
In https://tools.ietf.org/html/rfc7519#section-4.1.3 - In the special case when the JWT has one audience, the "aud" value MAY be a single case-sensitive string containing a StringOrURI value.
In current implementation is a single value array, for example "aud": ["https://www.googleapis.com/oauth2/v4/token"] but that doesn't work for https://developers.google.com/identity/protocols/OAuth2ServiceAccount where they expect "aud":"https://www.googleapis.com/oauth2/v4/token"
Would it be possible to support singe string in instance ToJSON Audience where toJSON (Audience auds) = toJSON auds ?
Yeah OK... as long as you promise to raise a ticket with Google to fix their implementation as well :)
In https://tools.ietf.org/html/rfc7519#section-4.1.3 - In the special case when the JWT has one audience, the "aud" value MAY be a single case-sensitive string containing a StringOrURI value.
In current implementation is a single value array, for example "aud": ["https://www.googleapis.com/oauth2/v4/token"] but that doesn't work for https://developers.google.com/identity/protocols/OAuth2ServiceAccount where they expect "aud":"https://www.googleapis.com/oauth2/v4/token"
Would it be possible to support singe string in instance ToJSON Audience where toJSON (Audience auds) = toJSON auds ?