Sha256: 989e3a4ee03b10674f039602ca6c50f75ec9317c85f09e4f590bdea9b53a4244

Contents?: true

Size: 359 Bytes

Versions: 8

Compression:

Stored size: 359 Bytes

Contents

# frozen_string_literal: true

require 'ruby_vault'

module RakeVault
  module Auth
    module Oidc
      def self.login(address, role, no_print)
        auth = role ? ["role=#{role}"] : []

        RubyVault.login(
          method: 'oidc',
          auth: auth,
          address: address,
          no_print: no_print
        )
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rake_vault-0.3.0.pre.4 lib/rake_vault/auth/oidc.rb
rake_vault-0.3.0.pre.3 lib/rake_vault/auth/oidc.rb
rake_vault-0.3.0.pre.2 lib/rake_vault/auth/oidc.rb
rake_vault-0.3.0.pre.1 lib/rake_vault/auth/oidc.rb
rake_vault-0.2.0 lib/rake_vault/auth/oidc.rb
rake_vault-0.1.0.pre.14 lib/rake_vault/auth/oidc.rb
rake_vault-0.1.0.pre.13 lib/rake_vault/auth/oidc.rb
rake_vault-0.1.0.pre.12 lib/rake_vault/auth/oidc.rb