This file defines the EDKII_REDFISH_CREDENTIAL_PROTOCOL interface.
Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
typedef EFI_STATUS |
( |
EFIAPI * |
EDKII_REDFISH_CREDENTIAL_PROTOCOL_GET_AUTH_INFO | ) |
|
Retrieve platform's Redfish authentication information.
This functions returns the Redfish authentication method together with the user Id and password.
- For AuthMethodNone, the UserId and Password could be used for HTTP header authentication as defined by RFC7235.
- For AuthMethodRedfishSession, the UserId and Password could be used for Redfish session login as defined by Redfish API specification (DSP0266).
Callers are responsible for and freeing the returned string storage.
- Parameters
-
[in] | This | Pointer to EDKII_REDFISH_CREDENTIAL_PROTOCOL instance. |
[out] | AuthMethod | Type of Redfish authentication method. |
[out] | UserId | The pointer to store the returned UserId string. |
[out] | Password | The pointer to store the returned Password string. |
- Return values
-
EFI_SUCCESS | Get the authentication information successfully. |
EFI_ACCESS_DENIED | SecureBoot is disabled after EndOfDxe. |
EFI_INVALID_PARAMETER | This or AuthMethod or UserId or Password is NULL. |
EFI_OUT_OF_RESOURCES | There are not enough memory resources. |
EFI_UNSUPPORTED | Unsupported authentication method is found. |
Notify the Redfish service provide to stop provide configuration service to this platform.
This function should be called when the platfrom is about to leave the safe environment. It will notify the Redfish service provider to abort all logined session, and prohibit further login with original auth info. GetAuthInfo() will return EFI_UNSUPPORTED once this function is returned.
- Parameters
-
[in] | This | Pointer to EDKII_REDFISH_CREDENTIAL_PROTOCOL instance. |
[in] | ServiceStopType | Reason of stopping Redfish service. |
- Return values
-
EFI_SUCCESS | Service has been stoped successfully. |
EFI_INVALID_PARAMETER | This is NULL. |
Others | Some error happened. |
Stop a Redfish configure handler of EDKII Redfish feature driver.
- Parameters
-
[in] | This | Pointer to EDKII_REDFISH_CONFIG_HANDLER_PROTOCOL instance. |
- Return values
-
EFI_SUCCESS | This handler has been stoped successfully. |
Others | Some error happened. |