Skip to content

emartech/session-validator-client-ruby

Repository files navigation

Session Validator Client Ruby Build Status

Ruby client for Emarsys session validator service.

Install

gem install session-validator-client

Usage

Copy .env.example to .env and set the necessary values for usage in your service.

Create client

require "session_validator"

client = SessionValidator::Client.new

Requests without Escher

For mTLS on GAP.

require "session_validator"

client = SessionValidator::Client.new(use_escher: false)

Validating a single MSID

client.valid?("staging_int_5ad5f96f307cf9.61063404")

Batch validating multiple MSIDs

Returns an array of the invalid MSIDs.

client.filter_invalid(["staging_int_5ad5f96f307cf9.61063404", "staging_int_5ad5f96f307cf9.61063405"])

Local development

Running tests

make test

About

Ruby client for Emarsys session validator service

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published