package auth

import "go-hep.org/x/hep/xrootd/xrdproto/auth"

Package auth contains the structures describing auth request.

Index

Constants

const RequestID uint16 = 3000

RequestID is the id of the request, it is sent as part of message. See xrootd protocol specification for details: http://xrootd.org/doc/dev45/XRdv310.pdf, 2.3 Client Request Format.

Types

type Auther

type Auther interface {
	Provider() string                          // Provider returns the name of the security provider.
	Request(params []string) (*Request, error) // Request forms an authorization Request according to passed parameters.
}

Auther is the interface that must be implemented by a security provider.

type Request

type Request struct {
	Type        [4]byte
	Credentials string
	// contains filtered or unexported fields
}

Request holds the auth request parameters.

func (Request) MarshalXrd

func (o Request) MarshalXrd(wBuffer *xrdenc.WBuffer) error

MarshalXrd implements xrdproto.Marshaler.

func (*Request) ReqID

func (req *Request) ReqID() uint16

ReqID implements xrdproto.Request.ReqID.

func (*Request) ShouldSign

func (req *Request) ShouldSign() bool

ShouldSign implements xrdproto.Request.ShouldSign.

func (*Request) UnmarshalXrd

func (o *Request) UnmarshalXrd(rBuffer *xrdenc.RBuffer) error

UnmarshalXrd implements xrdproto.Unmarshaler.

Source Files

auth.go

Directories

PathSynopsis
xrootd/xrdproto/auth/hostPackage host contains the implementation for the "host" security provider.
xrootd/xrdproto/auth/krb5Package krb5 contains the implementation of krb5 (Kerberos) security provider.
xrootd/xrdproto/auth/unixPackage unix contains the implementation of unix security provider.
Version
v0.37.0 (latest)
Published
May 20, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
9 hours ago

Tools for package owners.