oauthgitlab

package
v5.33.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: AGPL-3.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLabProvider

type GitLabProvider struct {
}

func (*GitLabProvider) GetSSOSettings

func (m *GitLabProvider) GetSSOSettings(config *model.Config, service string) (*model.SSOSettings, error)

func (*GitLabProvider) GetUserFromIdToken

func (m *GitLabProvider) GetUserFromIdToken(idToken string) (*model.User, error)

func (*GitLabProvider) GetUserFromJson

func (m *GitLabProvider) GetUserFromJson(data io.Reader, tokenUser *model.User) (*model.User, error)

type GitLabUser

type GitLabUser struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Login    string `json:"login"`
	Email    string `json:"email"`
	Name     string `json:"name"`
}

func (*GitLabUser) IsValid

func (glu *GitLabUser) IsValid() error

func (*GitLabUser) ToJson

func (glu *GitLabUser) ToJson() string

Jump to

Keyboard shortcuts

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