auth

package
v1.0.0-letsencrypt Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package auth allows to easily authenticate webhook requests with Akeyless Auth service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(ctx context.Context, creds string, accessID string, opts ...Option) error

Authenticate validates that the provided credentials belong to the provided access ID, and optionally makes additional assertions.

It uses Akeyless authentication service to confirm request initiator's identity.

Types

type Option

type Option func(*options)

Option is an optional authentication assertion to be made.

func WithAllowedItemName

func WithAllowedItemName(name string) Option

WithAllowedItemName asserts that the incoming request is made by a producer with the provided name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL