uidp

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0, MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Store adapter

Store is the package state variable which contains database connections

Functions

func ActivateOrDisableIdp

func ActivateOrDisableIdp(w http.ResponseWriter, r *http.Request)

ActivateOrDisableIdp enable or disable IDP

func BindLdap

func BindLdap(uname, pass, domain string) error

func CreateIdp

func CreateIdp(w http.ResponseWriter, r *http.Request)

CreateIdp created Identity Provider

func GenerateSCIMAuthToken

func GenerateSCIMAuthToken(w http.ResponseWriter, r *http.Request)

GenerateSCIMAuthToken creates auth token for scim connector. token is basically passwaord with format "password:orgID" which is hashed and stored in database. password is returned to user only once. first 4 characters of password is stored as key tag which will be returned in subsequent request.

func GetAllIdps

func GetAllIdps(w http.ResponseWriter, r *http.Request)

GetAllIdps retrieves all idps configured for organization

func GetAllIdpsWoa added in v1.1.4

func GetAllIdpsWoa(w http.ResponseWriter, r *http.Request)

GetAllIdpsWoa. TODO This should be rate limited when #63 is implemented

func GetAllUsersForIdp

func GetAllUsersForIdp(w http.ResponseWriter, r *http.Request)

GetUsersAll returns json array of user list.

func ImportLdapUsers

func ImportLdapUsers(w http.ResponseWriter, r *http.Request)

ImportLdapUsers search and imports ldap users

func InitStore

func InitStore(state *global.State)

InitStore initialises package state

func PreConfiguredIdps

PreConfiguredIdps is hardcoded pre-configurations for supported indetity providers

func SCIMCreateUser added in v1.1.4

func SCIMCreateUser(w http.ResponseWriter, r *http.Request)

SCIMCreateUser creates user in TRASA based on data from SCIM request.

func SCIMDeleteUser added in v1.1.4

func SCIMDeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser should be atomic transaction - a single user delete call should delete users detail from every database tabble connected with user.

func SCIMGetSingleUser added in v1.1.4

func SCIMGetSingleUser(w http.ResponseWriter, r *http.Request)

SCIMGetSingleUser get detail of single user based on userID supplied in SCIM request.

func SCIMGetSingleUsersWithFilter added in v1.1.4

func SCIMGetSingleUsersWithFilter(w http.ResponseWriter, r *http.Request)

SCIMGetSingleUsersWithFilter is filter based SCIM query. Currently we only support "eq" filter, meaning query with specefic trasaID or return all.

func SCIMPatchSingleUser added in v1.1.4

func SCIMPatchSingleUser(w http.ResponseWriter, r *http.Request)

SCIMPatchSingleUser patch single element. Currently only update user status is implemented.

func SCIMPutSingleUser added in v1.1.4

func SCIMPutSingleUser(w http.ResponseWriter, r *http.Request)

SCIMPutSingleUser updates user profile (all details supplied by request). For single element update, use patch.

func TransferUserToGivenIdp

func TransferUserToGivenIdp(w http.ResponseWriter, r *http.Request)

GetUsersAll returns json array of user list.

func UpdateIdp

func UpdateIdp(w http.ResponseWriter, r *http.Request)

UpdateIDP

Types

This section is empty.

Jump to

Keyboard shortcuts

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