2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
34 lines
1,022 B
Nix
34 lines
1,022 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "oauth2c";
|
|
version = "1.12.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloudentity";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Qb4eES7xT/bQTMtcpFy6aQ7n5U/0yA1GXdTR9ga3aYU=";
|
|
};
|
|
|
|
vendorHash = "sha256-+rkRo9zY3dRqElKApkbaBrDW8SqilqlGAhOM9vDeQps=";
|
|
|
|
doCheck = false; # tests want to talk to oauth2c.us.authz.cloudentity.io
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/cloudentity/oauth2c";
|
|
description = "User-friendly OAuth2 CLI";
|
|
longDescription = ''
|
|
oauth2c is a command-line tool for interacting with OAuth 2.0
|
|
authorization servers. Its goal is to make it easy to fetch access tokens
|
|
using any grant type or client authentication method. It is compliant with
|
|
almost all basic and advanced OAuth 2.0, OIDC, OIDF FAPI and JWT profiles.
|
|
'';
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.flokli ];
|
|
platforms = platforms.darwin ++ platforms.linux;
|
|
};
|
|
}
|