user

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FederatedID

func FederatedID(id *userpb.UserId) *userpb.UserId

FederatedID creates a federated user id by 1. stripping the protocol from the domain and 2. base64 encoding the opaque id with the domain to get a unique identifier that cannot collide with other users

func FormatOCMUser

func FormatOCMUser(u *userpb.UserId) string

FormatOCMUser formats a user id in the form of <opaque-id>@<idp> used by the OCM API in shareWith, owner and creator fields

func RemoteID

func RemoteID(id *userpb.UserId) *userpb.UserId

RemoteID creates a remote user id by 1. decoding the base64 encoded opaque id 2. splitting the opaque id at the last @ to get the opaque id and the domain

Types

This section is empty.

Jump to

Keyboard shortcuts

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