Sha256: c4b91946bc54f0249a9d5cdeece9276c22c14de223b1f94b7d0a69afc1441bcd
Contents?: true
Size: 1.51 KB
Versions: 33
Compression:
Stored size: 1.51 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Apps # Secret Store is an API that allows Stripe Apps developers to securely persist secrets for use by UI Extensions and app backends. # # The primary resource in Secret Store is a `secret`. Other apps can't view secrets created by an app. Additionally, secrets are scoped to provide further permission control. # # All Dashboard users and the app backend share `account` scoped secrets. Use the `account` scope for secrets that don't change per-user, like a third-party API key. # # A `user` scoped secret is accessible by the app backend and one specific Dashboard user. Use the `user` scope for per-user secrets like per-user OAuth tokens, where different users might have different permissions. # # Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects) class Secret < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List OBJECT_NAME = "apps.secret" def self.delete_where(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/apps/secrets/delete", params: params, opts: opts ) end def self.find(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/apps/secrets/find", params: params, opts: opts ) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems