oauthgitlab

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0, Apache-2.0 Imports: 7 Imported by: 1

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)

func (*GitLabProvider) IsSameUser

func (m *GitLabProvider) IsSameUser(dbUser, oauthUser *model.User) bool

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

Jump to

Keyboard shortcuts

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