idm

package
v0.0.0-...-5339e54 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Overview

* BSD 3-Clause License * Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginOauth

func LoginOauth(connection string, region string, tenant string, username string, password string, clientID string, version string) (response cookie.Details, err error)

LoginOauth returns a cookie for the region, tenant, user

Types

type AccessToken

type AccessToken struct {
	Token   string `json:"access_token"`
	Type    string `json:"token_type"`
	Expires int    `json:"expires_in"`
}

AccessToken for TIBCO Cloud

type AuthResponse

type AuthResponse struct {
	UserName  string `json:"userName"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	UserID    string `json:"userId"`
	Ts        int    `json:"ts"`
	OrgName   string `json:"orgName"`
	// AccounstInfo and LoggedInUserInfo is used on Auth V2 when user belongs to multiple subscriptions
	AccountsInfo []struct {
		AccountID          string `json:"accountId"`
		AccountDisplayName string `json:"accountDisplayName"`
		LoggedInUserRole   string `json:"loggedInUserRole"`
		OwnersInfo         []struct {
			FirstName string `json:"firstName"`
			LastName  string `json:"lastName"`
			Email     string `json:"email"`
			Role      string `json:"role"`
		} `json:"ownersInfo"`
		SubscriptionID string `json:"subscriptionId"`
	} `json:"accountsInfo"`
	LoggedInUserInfo struct {
		FirstName    string `json:"firstName"`
		LastName     string `json:"lastName"`
		Email        string `json:"email"`
		UserEntityID string `json:"userEntityId"`
	} `json:"loggedInUserInfo"`
}

AuthResponse for login.

type Error

type Error struct {
	ErrorCode         string   `json:"errorCode"`
	ErrorMsg          string   `json:"errorMsg"`
	ContextAttributes []string `json:"contextAttributes"`
}

Jump to

Keyboard shortcuts

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