Documentation ¶
Index ¶
- func DeleteClientSecret(elvidAuthority string, accessTokenAD string, clientId string, ...) error
- func DeleteMachineClient(elvidAuthority string, accessTokenAD string, id string) error
- func DeleteRequest(url string, accessToken string) (*http.Response, error)
- func DeleteUserClient(elvidAuthority string, accessTokenAD string, id string) error
- func ElvidErrorResponse(response *http.Response, url string) error
- func GetAccessTokenAD(tenantId string, clientId string, clientSecret string) (string, error)
- func GetRequest(url string, accessToken string) (*http.Response, error)
- func PatchRequest(url string, accessToken string, jsonValue []byte) (*http.Response, error)
- func PostRequest(url string, accessToken string, jsonValue []byte) (*http.Response, error)
- func UpdateUserClient(elvidAuthority string, accessTokenAD string, userClient *UserClient) error
- type ADResponse
- type ClientSecret
- type MachineClient
- func CreateMachineClient(elvidAuthority string, accessTokenAD string, machineClientInput *MachineClient) (*MachineClient, error)
- func ReadMachineClient(elvidAuthority string, accessTokenAD string, id string) (*MachineClient, error)
- func UpdateMachineClient(elvidAuthority string, accessTokenAD string, machineClient *MachineClient) (*MachineClient, error)
- type UserClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteClientSecret ¶
func DeleteMachineClient ¶
func DeleteUserClient ¶
func GetAccessTokenAD ¶
func PatchRequest ¶
func PostRequest ¶
func UpdateUserClient ¶
func UpdateUserClient(elvidAuthority string, accessTokenAD string, userClient *UserClient) error
Types ¶
type ADResponse ¶
type ADResponse struct {
AccessToken string `json:"access_token"`
}
type ClientSecret ¶
type ClientSecret struct { Id int `json:"Id"` Value string `json:"SecretValue"` HashedValueStartsWith string `json:"HashedValueStartsWith"` }
func CreateClientSecret ¶
func CreateClientSecret(elvidAuthority string, accessTokenAD string, clientId string) (*ClientSecret, error)
func ReadClientSecret ¶
type MachineClient ¶
type MachineClient struct { Id int `json:"Id"` ClientId string `json:"ClientId"` ClientName string `json:"ClientName"` TestUserLoginEnabled bool `json:"TestUserLoginEnabled"` AccessTokenLifeTime int `json:"AccessTokenLifeTime"` Scopes []string `json:"Scopes"` }
func CreateMachineClient ¶
func CreateMachineClient(elvidAuthority string, accessTokenAD string, machineClientInput *MachineClient) (*MachineClient, error)
func ReadMachineClient ¶
func ReadMachineClient(elvidAuthority string, accessTokenAD string, id string) (*MachineClient, error)
func UpdateMachineClient ¶
func UpdateMachineClient(elvidAuthority string, accessTokenAD string, machineClient *MachineClient) (*MachineClient, error)
type UserClient ¶
type UserClient struct { Id int `json:"Id"` ClientId string `json:"ClientId"` ClientName string `json:"ClientName"` Scopes []string `json:"Scopes"` Domains []string `json:"Domains"` RedirectUriPaths []string `json:"RedirectUriPaths"` PostLogoutRedirectUriPaths []string `json:"PostLogoutRedirectUriPaths"` BankIDLoginEnabled bool `json:"BankIDLoginEnabled"` LocalLoginEnabled bool `json:"LocalLoginEnabled"` ElviaADLoginEnabled bool `json:"ElviaADLoginEnabled"` HafslundADLoginEnabled bool `json:"HafslundADLoginEnabled"` TestUserLoginEnabled bool `json:"TestUserLoginEnabled"` RequireClientSecret bool `json:"RequireClientSecret"` AccessTokenLifetime int `json:"AccessTokenLifetime"` AlwaysIncludeUserClaimsInIdToken bool `json:"AlwaysIncludeUserClaimsInIdToken"` ClientNameLanguageKey string `json:"ClientNameLanguageKey"` AllowUseOfRefreshTokens bool `json:"AllowUseOfRefreshTokens"` OneTimeUsageForRefreshTokens bool `json:"OneTimeUsageForRefreshTokens"` RefreshTokensLifeTime int `json:"RefreshTokensLifeTime"` }
func CreateUserClient ¶
func CreateUserClient(elvidAuthority string, accessTokenAD string, userClient *UserClient) (*UserClient, error)
func ReadUserClient ¶
func ReadUserClient(elvidAuthority string, accessTokenAD string, id string) (*UserClient, error)
Click to show internal directories.
Click to hide internal directories.