Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
TrinsicConnect - the Ruby gem for the Connect API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This SDK is automatically generated by the OpenAPI Generator project:
To build the Ruby code into a gem:
gem build trinsic_connect.gemspec
Then either install the gem locally:
gem install ./trinsic_connect-0.2.3.gem
(for development, run gem install --dev ./trinsic_connect-0.2.3.gem
to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'trinsic_connect', '~> 0.2.3'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'trinsic_connect', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'trinsic_connect'
# Setup authorization
TrinsicConnect.configure do |config|
# Configure Bearer authorization: Bearer
config.access_token = 'YOUR_BEARER_TOKEN'
# Configure a proc to get access tokens in lieu of the static access_token configuration
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
end
api_instance = TrinsicConnect::AttachmentsApi.new
opts = {
exchange_attachment_access_key_request: TrinsicConnect::ExchangeAttachmentAccessKeyRequest.new({attachment_access_key: 'attachment_access_key_example'}) # ExchangeAttachmentAccessKeyRequest |
}
begin
#Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
api_instance.exchange_attachment_access_key(opts)
rescue TrinsicConnect::ApiError => e
puts "Exception when calling AttachmentsApi->exchange_attachment_access_key: #{e}"
end
All URIs are relative to https://connect.trinsic.id
Class | Method | HTTP request | Description |
---|---|---|---|
TrinsicConnect::AttachmentsApi | exchange_attachment_access_key | POST /api/v1/attachments/exchange | Exchange an Attachment Access Key (from IdentityData.Attachments ) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later. |
TrinsicConnect::NetworkApi | identity_lookup | GET /api/v1/network/identities/{phoneNumber} | Query the availability of an identity in the Trinsic Network by phone number |
TrinsicConnect::NetworkApi | list_providers | GET /api/v1/network/providers | List all identity providers available for use |
TrinsicConnect::SessionsApi | cancel_session | POST /api/v1/sessions/{sessionId}/cancel | Cancel a Session by its ID |
TrinsicConnect::SessionsApi | create_session | POST /api/v1/sessions | Create a Session to verify a user's identity |
TrinsicConnect::SessionsApi | exchange_results_key | POST /api/v1/sessions/{sessionId}/results/exchange | Exchange a Results Access Key for Identity Data |
TrinsicConnect::SessionsApi | get_session | GET /api/v1/sessions/{sessionId} | Get a Session by its ID |
TrinsicConnect::SessionsApi | list_sessions | GET /api/v1/sessions | List Sessions created by your account |
TrinsicConnect::SessionsApi | redact_session | POST /api/v1/sessions/{sessionId}/redact | Redact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted. |
Authentication schemes defined for the API:
FAQs
Unknown package
We found that trinsic_connect demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.