Documentation ¶
Overview ¶
Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0
This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.
Author: Glenn Feunteun, Celine Nicolas
Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0
This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.
Author: Glenn Feunteun, Celine Nicolas
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHttpClient ¶
func RegisterNode ¶
func RegisterNode(w http.ResponseWriter, r *http.Request)
func RenewToken ¶
func RenewToken(w http.ResponseWriter, r *http.Request)
Types ¶
type OAuthResponse ¶
type OAuthResponse struct {
AccessToken string `json:"access_token"`
}
Anonymous structure to decode json response and get oAuth access_token
func OAuthCallback ¶
func OAuthCallback(ctx context.Context, httpClient *http.Client, groupRegInfo *model.GroupRegInfo) (*OAuthResponse, *model.RksError)