sparql

package
v0.0.0-...-2c46020 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSparql

func NewSparql(repo *sparql.Repo) oauthenticator.Provider

Types

type OAuthConfig

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

func (*OAuthConfig) Config

func (c *OAuthConfig) Config() *oauth2.Config

func (*OAuthConfig) Endpoint

func (c *OAuthConfig) Endpoint() oauth2.Endpoint

func (*OAuthConfig) Identifier

func (c *OAuthConfig) Identifier() string

func (*OAuthConfig) Label

func (c *OAuthConfig) Label() string

func (*OAuthConfig) Options

func (c *OAuthConfig) Options() []oauth2.AuthCodeOption

func (*OAuthConfig) Term

func (c *OAuthConfig) Term() rdf.Term

func (*OAuthConfig) Token

func (*OAuthConfig) Type

func (c *OAuthConfig) Type() string

type Queries

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

func InitializeQueries

func InitializeQueries() *Queries

func (*Queries) GetClientsOfType

func (q *Queries) GetClientsOfType(repo *sparql.Repo, clientType string) ([]oauthenticator.Config, error)

func (*Queries) GetConfig

func (q *Queries) GetConfig(provider *sparqlProvider, repo *sparql.Repo, client rdf.Term) (*OAuthConfig, error)

func (*Queries) GetParams

func (q *Queries) GetParams(repo *sparql.Repo, client rdf.Term) ([]oauth2.AuthCodeOption, error)

func (*Queries) ReadConfigs

func (q *Queries) ReadConfigs(provider *sparqlProvider, repo *sparql.Repo) ([]oauthenticator.Config, error)

func (*Queries) ReadToken

func (q *Queries) ReadToken(repo *sparql.Repo, client rdf.Term) (*oauth2.Token, error)

func (*Queries) WriteToken

func (q *Queries) WriteToken(repo *sparql.Repo, client rdf.Term, t *oauth2.Token) error

Jump to

Keyboard shortcuts

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