Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-cli/cmd/idp-login.go
3603 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package cmd
6
7
import (
8
"github.com/spf13/cobra"
9
)
10
11
var idpLoginOpts struct {
12
Scope string
13
}
14
15
var idpLoginCmd = &cobra.Command{
16
Use: "login",
17
Short: "Login to a service for which trust has been established",
18
}
19
20
func init() {
21
idpCmd.AddCommand(idpLoginCmd)
22
23
idpLoginCmd.PersistentFlags().StringVar(&idpLoginOpts.Scope, "scope", "", "scopes string of the ID token")
24
}
25
26