net

package
v0.0.0-...-3e6933e Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 64 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Copyright 2018 Keydap. All rights reserved. Licensed under the Apache License, Version 2.0, see LICENSE.

Index

Constants

View Source
const AUTHFLOW_COOKIE string = "_afc"

the authflow cookie

View Source
const BASIC_AUTHZ_PREFIX string = "Basic "
View Source
const COOKIE_LOGIN_NAME string = "SPLCN"
View Source
const OAUTH_CODE_TTL int = 600

the number of seconds an oauth code is valid for

View Source
const OTP_LEN = 6
View Source
const PARAM_REDIRECT_TO = "redirectTo"
View Source
const SSO_COOKIE = "KSPAX" // Keydap Sparrow Auth X (X -> all the authenticated users)

Variables

View Source
var API_BASE = "/v2" // NO slash at the end
View Source
var DEFAULT_SRV_CONF string = `` /* 355-byte string literal not displayed */
View Source
var FORM_URL_ENCODED_TYPE = "application/x-www-form-urlencoded"
View Source
var JSON_TYPE = "application/json; charset=UTF-8"
View Source
var OAUTH_BASE = "/oauth2" // NO slash at the end
View Source
var SAML_BASE = "/saml" // NO slash at the end
View Source
var SCIM_JSON_TYPE = "application/scim+json; charset=UTF-8"
View Source
var TENANT_COOKIE = "SD"
View Source
var TENANT_HEADER = "X-Sparrow-Domain"

Functions

This section is empty.

Types

type CodeType

type CodeType uint8
const (
	OAuth2 CodeType = iota
	OIDC
	SAML2
)

type LdapSession

type LdapSession struct {
	Id string

	*base.OpContext
	// contains filtered or unexported fields
}

type LogoutNameID

type LogoutNameID struct {
	XMLName xml.Name `xml:"urn:oasis:names:tc:SAML:2.0:assertion NameID"`
	Format  string   `xml:",attr"`
	Value   string   `xml:",chardata"`
}

type LogoutRequest

type LogoutRequest struct {
	ID           string    `xml:",attr"`
	Version      string    `xml:",attr"`
	IssueInstant time.Time `xml:",attr"`
	Issuer       string
	NameID       LogoutNameID
	SessionIndex string
}

this struct is used for parsing recieved logout requests

type Sparrow

type Sparrow struct {
	// contains filtered or unexported fields
}

func NewSparrowServer

func NewSparrowServer(homeDir string, overrideConf string) *Sparrow

func (*Sparrow) Start

func (sp *Sparrow) Start()

func (*Sparrow) Stop

func (sp *Sparrow) Stop()

Jump to

Keyboard shortcuts

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