2023-05-24 13:37:59 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "oauth2c";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.16.0";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloudentity";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-spD6BEyDwY2Nrk/XOWA+XJA1l7ixN4j6N5m9e8DLg88=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-PdLh/J0HUvr1JjW/ew5PQe9TJNykI4tJhlRoVjRT/hg=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "oauth2c";
|
2023-05-24 13:37:59 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|