From 863128ebcbb939fb15c3d0d293c0f72af91140ff Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 20 May 2023 20:59:33 +0300 Subject: [PATCH] oauth2c: init at 1.7.0 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. --- pkgs/tools/security/oauth2c/default.nix | 34 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/security/oauth2c/default.nix diff --git a/pkgs/tools/security/oauth2c/default.nix b/pkgs/tools/security/oauth2c/default.nix new file mode 100644 index 000000000000..8d96cbd19fb9 --- /dev/null +++ b/pkgs/tools/security/oauth2c/default.nix @@ -0,0 +1,34 @@ +{ buildGoModule +, fetchFromGitHub +, lib +}: + +buildGoModule rec { + pname = "oauth2c"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "cloudentity"; + repo = pname; + rev = "v${version}"; + hash = "sha256-IOfY0lKOeuArO3bI1JjTOXHhCqr3GTfsOHCOI0Qh4xk="; + }; + + vendorHash = "sha256-euEmslrSbXPVDNZkIguq+ukt74Um4H0+lIXEyCBorjE="; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 820de9675083..2ea76bf482fc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -667,6 +667,8 @@ with pkgs; erosmb = callPackage ../tools/security/erosmb { }; + oauth2c = callPackage ../tools/security/oauth2c { }; + octosuite = callPackage ../tools/security/octosuite { }; octosql = callPackage ../tools/misc/octosql { };