msauth

package
v0.0.0-...-d7d6881 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package msauth is used to generate a Microsoft SASL signed token to be used across various services provided by Microsoft.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SignatureExpiry

func SignatureExpiry(from time.Time, interval time.Duration) string

SignatureExpiry returns the expiry for the shared access signature for the next request.

It's translated from the Python client: https://github.com/Azure/azure-sdk-for-python/blob/master/azure-servicebus/azure/servicebus/servicebusservice.py

Types

type Signer

type Signer interface {
	Sign(uri string, expiry string) string
}

Signer helps in creating a valid Microsoft SASL signed token.

func New

func New(namespace string, sharedAccessKeyName string, sharedAccessKeyValue string) Signer

New creates a new auth builder from the given parameters. Their meaning can be found in the MSDN docs at:

https://docs.microsoft.com/en-us/rest/api/servicebus/Introduction
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-sas

Jump to

Keyboard shortcuts

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