Skip to content

Commit

Permalink
Merge pull request #1 from hani-deriv/hydra/init_sdk
Browse files Browse the repository at this point in the history
Init SDK
  • Loading branch information
mukesh-deriv authored Sep 30, 2024
2 parents 234c40f + e155376 commit 1a7c0dc
Show file tree
Hide file tree
Showing 28 changed files with 1,737 additions and 9 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-wokflow.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/build-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build and test
run-name: build and test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
perl-version:
- '5.38'
- '5.36'
- '5.34'
- '5.32'
- '5.30'

container:
image: perldocker/perl-tester:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@main
- run: perl -V
- run: |
cpm install -g --no-test Dist::Zilla Dist::Zilla::App::Command::cover ExtUtils::MakeMaker
name: Install Dzil
- name: Install dzil author dependencies
run: |
cpm install --no-test -g \
-w 2 \
--mirror=http://cpan.cpantesters.org/ $(dzil authordeps --missing)
- name: Install dist deps
run: |
cpanm -n --installdeps .
dzil listdeps --author --missing --cpanm-versions | xargs cpanm -n
- run: dzil smoke --release --author && dzil cover -test -report codecov && dzil xtest
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
id_dsa
id_rsa
/blib/
/.build/
_build/
cover_db/
inc/
Build
!Build/
Build.bat
.last_cover_stats
/Makefile.PL
/Makefile
/Makefile.old
/MANIFEST.bak
/META.yml
/META.json
/MYMETA.*
nytprof.out
/LICENSE
/pm_to_blib
*.o
*.bs
*.swp
14 changes: 14 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{$NEXT}}
- Initial release
- get_login_request
- accept_login_request
- get_logout_request
- accept_logout_request
- exchange_token
- fetch_jwks
- fetch_openid_configuration
- validate_token
- validate_id_token
- get_consent_request
- accept_consent_request
- revoke_login_sessions
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# perl-WebService-Hydra
# Ory Hydra Simple Client
19 changes: 19 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
requires 'Object::Pad', '0.56'; # Required modules with specific versions
requires 'JSON::MaybeUTF8', '0';
requires 'Scalar::Util', '0';
requires 'Log::Any', '0';
requires 'Crypt::JWT', '0';
requires 'JSON::MaybeUTF8', '0';
requires 'Syntax::Keyword::Try', '0';
requires 'HTTP::Tiny', '0';
requires 'Module::Load', '0';

on 'test' => sub {
requires 'Test::More', '0'; # Test dependencies
};

on 'develop' => sub {
requires 'strict', '0'; # Meta dependencies for development
requires 'warnings', '0';
requires 'Test::Pod', '1.45'; # Run pod tests (optional)
};
10 changes: 10 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = WebService-Hydra
author = DERIV <[email protected]>
license = Perl_5
copyright_holder = Deriv Services Ltd
copyright_year = 2022

[@Author::DERIV]
allow_dirty = lib/WebService/Hydra/Client.pm
[Test::Perl::Critic]
critic_config = t/rc/perlcriticrc
9 changes: 9 additions & 0 deletions lib/WebService/Hydra.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package WebService::Hydra;
# ABSTRACT: ...

use strict;
use warnings;

our $VERSION = "0.001";

1;
Loading

0 comments on commit 1a7c0dc

Please sign in to comment.