Skip to content

Specify PublicKey Format #237

@ubamrein

Description

@ubamrein

According to the JWTVerifier source code, only a
[...] UTF8 encoded PEM public key, with a "BEGIN PUBLIC KEY" header is supported. This has lead to confusion (SwissCovid/swisscovid-app-ios#352) since Android allows the use of a x509-Certificate directly.

Either iOS abstracts the public key in a type alias as well, and provides the corresponding constructors, or specifies the format needed here

public init(publicKey: Data, jwtTokenHeaderKey: String) {

Further, the documentation needs to be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions