-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hani-deriv/hydra/init_sdk
Init SDK
- Loading branch information
Showing
28 changed files
with
1,737 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# perl-WebService-Hydra | ||
# Ory Hydra Simple Client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.