Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkazuo/openid-key
Get OpenID keys from issuer.
https://github.com/kkazuo/openid-key
common-lisp cryptography jwt lisp openid openidc
Last synced: 19 days ago
JSON representation
Get OpenID keys from issuer.
- Host: GitHub
- URL: https://github.com/kkazuo/openid-key
- Owner: kkazuo
- License: mit
- Created: 2018-11-03T06:20:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T04:28:39.000Z (about 6 years ago)
- Last Synced: 2024-11-15T15:47:53.090Z (3 months ago)
- Topics: common-lisp, cryptography, jwt, lisp, openid, openidc
- Language: Common Lisp
- Size: 8.79 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Openid-Key
You can get public key of OpenID Connect [id-token][id-token].
Then, you can verify id-token with the key.OpedID Key format has defined in [JSON Web Key (JWK)][JWK].
## Usage
```
CL-USER> (setf *keys* (openid-key:get-openid-keys "https://accounts.google.com"))
#S(OPENID-KEY::OPENID-KEYS
:ISSUER "https://accounts.google.com"
:JWKS-EXPIRES @2018-11-03T20:03:46.000000+09:00
:KEYS (#S(OPENID-KEY::OPENID-KEY
:KTY "RSA"
:USE "sig"
:ALG "RS256"
:KID "8289d54280b76712de41cd2ef95972b123be9ac0"
:KEY #)
#S(OPENID-KEY::OPENID-KEY
:KTY "RSA"
:USE "sig"
:ALG "RS256"
:KID "aa436c3f63b281ce0d976da0b51a34860ff960eb"
:KEY #)))
CL-USER> (openid-key:find-openid-key "8289d54280b76712de41cd2ef95972b123be9ac0" *keys*)
#
"RS256"
"RSA"
"sig"
```You may also be interested in [Jose][Jose] for verify [id-token][id-token].
## Installation
[Jose]: http://quickdocs.org/jose/
[JWK]: https://tools.ietf.org/html/rfc7517
[id-token]: https://openid.net/specs/openid-connect-core-1_0.html