misc

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessTokenFromRequest added in v0.3.0

func GetAccessTokenFromRequest(r *http.Request) (string, error)

GetAccessTokenFromRequest is a helper method to recover an Access Token from a http request

func GetCodeVerifierAndChallenge added in v0.3.0

func GetCodeVerifierAndChallenge() (codeVerifier string, codeChallenge string)

GetCodeVerifierAndChallenge get an oauth code verifier and it's challenge

func GetNoSSLClient added in v0.3.0

func GetNoSSLClient() *http.Client

GetNoSSLClient creates a http.Client that skips tls verification

func GetStateAndNonce added in v0.3.0

func GetStateAndNonce() (state, nonce string)

GetStateAndNonce creates two random sequences 24 bytes in length

func RetrieveHydraURLs

func RetrieveHydraURLs(baseURL string) (hydraAdminURL string, hydraPublicURL string)

RetrieveHydraURLs searches for the additional Hydra configs in a special whisper API

Types

This section is empty.

Jump to

Keyboard shortcuts

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