identity_platform_service

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (sdk.UserService, error)

New - Creates a new instance of the Identity Platform auth plugin

func NewWithClient

func NewWithClient(client FirebaseAuth) sdk.UserService

Types

type FirebaseAuth

type FirebaseAuth interface {
	TenantManager() FirebaseTenantManager
}

func AdaptFirebaseAuth

func AdaptFirebaseAuth(client *auth.Client) FirebaseAuth

type FirebaseTenantClient

type FirebaseTenantClient interface {
	CreateUser(context.Context, *UserToCreate) (*auth.UserRecord, error)
}

type FirebaseTenantManager

type FirebaseTenantManager interface {
	Tenants(context.Context, string) TenantIterator
	AuthForTenant(tenantId string) (FirebaseTenantClient, error)
	CreateTenant(context.Context, *TenantToCreate) (*auth.Tenant, error)
}

func AdaptTenantManager

func AdaptTenantManager(client *auth.TenantManager) FirebaseTenantManager

type IdentityPlatformAuthService

type IdentityPlatformAuthService struct {
	sdk.UnimplementedAuthPlugin
	// contains filtered or unexported fields
}

IdentityPlatformAuthService - GCP Identity Platform implementation of the Nitric Auth plugin interface

func (*IdentityPlatformAuthService) Create

func (s *IdentityPlatformAuthService) Create(tenant string, id string, email string, password string) error

CreateUser - Creates a new user in GCP Identity Platform (using Firebase Auth)

type TenantIterator

type TenantIterator interface {
	Next() (*auth.Tenant, error)
}

type TenantToCreate

type TenantToCreate struct {
	DisplayName           string
	AllowPasswordSignUp   bool
	EnableEmailLinkSignIn bool
}

type UserToCreate

type UserToCreate struct {
	Email         string
	DisplayName   string
	UID           string
	Password      string
	Disabled      bool
	EmailVerified bool
	PhoneNumber   string
	PhotoURL      string
}

Jump to

Keyboard shortcuts

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