auth

package
v1.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StartPage          = stineURL.Url + "/scripts/mgrqispi.dll?APPNAME=CampusNet&PRGNAME=EXTERNALPAGES&ARGUMENTS=-N000000000000001,-N000265,-Astartseite"
	AuthenticationForm = "https://cndsf.ad.uni-hamburg.de/IdentityServer/Account/Login"
)

Variables

This section is empty.

Functions

func GetAuthenticationToken

func GetAuthenticationToken(authPageRes *http.Response) (string, error)

func GetClient

func GetClient() *http.Client

func GetLinkToAuthForm

func GetLinkToAuthForm(startPageURL string, client *http.Client) (string, error)

func GetMalformattedCnscCookie

func GetMalformattedCnscCookie(respWithCookie *http.Response) (*http.Cookie, error)

GetMalformattedCnscCookie extracts a cookie, which is sent malformed by the STiNE server, which the Go Client would not parse

func GetReturnURL

func GetReturnURL(authPageRes *http.Response) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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