package current_github
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
GitHub plugin for OCurrent
Install
dune-project
Dependency
Authors
-
TThomas Leonard <talex5@gmail.com>
-
AAntonin Décimo <antonin@tarides.com>
-
TTim McGilchrist <timmcgil@gmail.com>
-
CCraig Ferguson <me@craigfe.io>
-
EEtienne MARAIS <etienne@maiste.fr>
-
AAnil Madhavapeddy <anil@recoil.org>
-
David Allsopp
-
EEwan Mellor <ewan@tarides.com>
-
KKate <kit.ty.kate@disroot.org>
-
MMark Elvers <mark.elvers@tunbury.org>
-
PPuneeth Chaganti <punchagan@muse-amuse.in>
-
LLucas Pluvinage <lucas@tarides.com>
-
NNavin Keswani <navin@novemberkilo.com>
-
TThomas Gazagnaire <thomas@gazagnaire.org>
-
Patrick Ferris
-
AArthur Wendling <art.wendling@gmail.com>
-
AAnurag Soni <anurag@sonianurag.com>
-
AAmbre Austen Suhamy <ambre@tarides.com>
-
BBen Andrew <benmandrew@gmail.com>
-
GGargi Sharma <gs051095@gmail.com>
-
JJonathan Coates <git@squiddev.cc>
-
JJules Aguillon <juloo.dsi@gmail.com>
-
MMagnus Skjegstad <magnus@skjegstad.com>
-
SShon Feder <shon.feder@gmail.com>
-
Ssmolck <46855713+smolck@users.noreply.github.com>
-
Ttatchi <corentin.leruth@gmail.com>
Maintainers
Sources
ocurrent-0.7.4.tbz
md5=7b5aea3a57da0add8a1f021849f9a9f7
sha512=c7a88b9ddf2c142f760b6a7da0e9a70cd2902120a2c4041d3a876b4a7e165cdd0326c1ad3310f4d9ee9647d5019b1fbeef6178028456aa082ccc275c1556d4b8
doc/src/current_github/token.ml.html
Source file token.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20type t = { iat : int; (* Issued at time *) exp : int; (* JWT expiration time (10 minute maximum) *) iss : string; (* GitHub App's identifier *) } [@@deriving to_yojson] let b64encode = Base64.(encode_exn ~pad:false ~alphabet:uri_safe_alphabet) let header = b64encode {|{"typ":"JWT","alg":"RS256"}|} ^ "." let encode ~key ~iat ~app_id = let exp = iat + 10 * 60 in let t = { iat; exp; iss = app_id } in let payload = to_yojson t |> Yojson.Safe.to_string |> b64encode in let data = header ^ payload in let signature = let msg = Cstruct.of_string data in Mirage_crypto_pk.Rsa.PKCS1.sign ~hash:`SHA256 ~key (`Message msg) in Printf.sprintf "%s.%s" data (b64encode (Cstruct.to_string signature))
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>