Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

729 B
Raw Blame
package cmd

import (
	"github.com/getfider/fider/app/models/dto"
)

type SaveCustomOAuthConfig struct {
	ID                int
	Logo              *dto.ImageUpload
	Provider          string
	Status            int
	DisplayName       string
	ClientID          string
	ClientSecret      string
	AuthorizeURL      string
	TokenURL          string
	Scope             string
	ProfileURL        string
	IsTrusted         bool
	JSONUserIDPath    string
	JSONUserNamePath  string
	JSONUserEmailPath string
	JSONUserRolesPath string
	AllowedRoles      string
}

type ParseOAuthRawProfile struct {
	Provider string
	Body     string

	Result *dto.OAuthUserProfile
}

type SetTenantProviderStatus struct {
	Provider  string
	IsEnabled bool
}