Skip to content

SUNET/gnap-client-js

Repository files navigation

gnap-client-js

Written in Javascript and Typescript. Types are exported and available to be used.

In sync with the backend implementation https://github.com/SUNET/sunet-auth-server, gnap-client-js is implemented using as a reference the draft #10 of the GNAP protocol https://datatracker.ietf.org/doc/html/draft-ietf-gnap-core-protocol-10

However some updates have been back-ported:

Some fixes have been applied to the typescript-client types extracted from the local server https://api.eduid.docker/auth/openapi.json:

  • AccessTokenRequest.access = null fixed to Array<string | Access>
  • commented out export OpenAPI and OpenAPIConfig in typescript-client

The differences between version 10 and current last available version (v. 20) can be found in this diff: https://author-tools.ietf.org/iddiff?url1=draft-ietf-gnap-core-protocol-10&url2=draft-ietf-gnap-core-protocol-20&difftype=--html

Status of the GNAP protocol

Last updated on the status of the draft-ietf-gnap-core-protocol version 20 is "Waiting on RFC-Editor" on 23 Mar 2024 https://www.iana.org/performance/ietf-draft-status

  • draft-ietf-gnap-core-protocol 20 17 Mar 2024 Waiting on RFC-Editor 23 Mar 2024

Publication Queue https://www.rfc-editor.org/current_queue.php https://www.rfc-editor.org/about/queue/ https://www.iana.org/performance/ietf-draft-status/2024

Flowchart of RFC Editor Process: https://www.rfc-editor.org/about/queue/flowchart/

Other implementations

https://datatracker.ietf.org/doc/html/draft-ietf-gnap-core-protocol-20#name-implementation-status

References

GNAP: https://datatracker.ietf.org/wg/gnap/documents/ JOSE: https://datatracker.ietf.org/wg/jose/documents/ JSON Web Signature (JWS): https://datatracker.ietf.org/doc/html/rfc7515 Media Types: https://www.iana.org/assignments/media-types/media-types.xhtml Named Information Hash Algorithm Registry: https://www.iana.org/assignments/named-information/named-information.xhtml JOSE Javascript: https://github.com/panva/jose

About

GNAP client for use in frontend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published