forgerock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

ForgeRock client used to login to ForgeRock and any service providers using ForgeRock.

func New

func New(baseUrl string) (fr *Client, err error)

Creates a new ForgeRock client with the gaven base url.

func (*Client) Login

func (fr *Client) Login(appUrl string, credentials Credentials) (restyClient *resty.Client, err error)

Logs in to the ForgeRock Access Management and the application.

Returns resty client with the valid session, if the supplied credentials were correct. This can be used to issue further http requests to other systems (GitHub, Zuul, ...), which are using ForgeRock as their Identity Provider.

type Credentials

type Credentials struct {
	Username string
	Password string
}

Credentials used to login to ForgeRock.

Jump to

Keyboard shortcuts

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