profile

package
v0.0.0-...-5004fd2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NamespaceIDApp   = "app"
	NamespaceIDCA    = "ca"
	NamespaceIDGraph = "graph"
)

Variables

This section is empty.

Functions

func SyncMemberOfInternal

func SyncMemberOfInternal(c ctx.RequestContext, nsID string, groupID string) (*resdoc.LinkResourceDoc, *ProfileDoc, *ProfileDoc, error)

Types

type AppDoc

type AppDoc struct {
	resdoc.ResourceDoc

	DisplayName          *string `json:"displayName,omitempty"`
	ApplicationID        *string `json:"applicationId,omitempty"`
	ServicePrincipalID   *string `json:"servicePrincipalId,omitempty"`
	ServicePrincipalType *string `json:"servicePrincipalType,omitempty"`
}

func (*AppDoc) ToProfile

func (doc *AppDoc) ToProfile() (m models.Profile)

type ProfileDoc

type ProfileDoc struct {
	resdoc.ResourceDoc

	DisplayName          *string `json:"displayName,omitempty"`
	UserPrincipalName    *string `json:"userPrincipalName,omitempty"`
	ServicePrincipalType *string `json:"servicePrincipalType,omitempty"`
	AppId                *string `json:"appId,omitempty"`
	Mail                 *string `json:"mail,omitempty"`
}

func SyncProfileInternal

func SyncProfileInternal(c ctx.RequestContext, namespaceId string, gclient *msgraphsdkgo.GraphServiceClient) (*ProfileDoc, error)

func SyncServicePrincipalProfile

func SyncServicePrincipalProfile(c ctx.RequestContext, ID string, additionalSelects []string) (ctx.RequestContext, *ProfileDoc, gmodels.ServicePrincipalable, error)

func SyncServicePrincipalProfileByAppID

func SyncServicePrincipalProfileByAppID(c ctx.RequestContext, appID string, additionalSelects []string) (ctx.RequestContext, *ProfileDoc, gmodels.ServicePrincipalable, error)

func (*ProfileDoc) TargetNamespaceProvider

func (doc *ProfileDoc) TargetNamespaceProvider() models.NamespaceProvider

func (*ProfileDoc) ToModel

func (doc *ProfileDoc) ToModel() (m models.Profile)

func (*ProfileDoc) ToRef

func (doc *ProfileDoc) ToRef() (ref models.Ref)

type ProfileServer

type ProfileServer struct {
	api.APIServer
}

func NewServer

func NewServer(apiServer api.APIServer) *ProfileServer

func (*ProfileServer) GetProfile

func (*ProfileServer) GetProfile(ec echo.Context, namespaceProvider models.NamespaceProvider, namespaceId string) error

SyncProfile implements admin.ServerInterface.

func (*ProfileServer) ListProfiles

func (*ProfileServer) ListProfiles(ec echo.Context, namespaceProvider models.NamespaceProvider) error

func (*ProfileServer) PutProfile

func (*ProfileServer) PutProfile(ec echo.Context, namespaceProvider models.NamespaceProvider, namespaceId string) error

PutProfile implements admin.ServerInterface.

func (*ProfileServer) SyncMemberOf

func (*ProfileServer) SyncMemberOf(ec echo.Context, namespaceProvider models.NamespaceProvider, nsID string, groupID string) error

SyncMemberGroup implements admin.ServerInterface.

func (*ProfileServer) SyncProfile

func (*ProfileServer) SyncProfile(ec echo.Context, namespaceProvider models.NamespaceProvider, namespaceId string) error

SyncProfile implements admin.ServerInterface.

Jump to

Keyboard shortcuts

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