Skip to content

Commit f36a986

Browse files
authored
feat(controlplane): CAS download endpoint (#307)
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
1 parent 5335cda commit f36a986

21 files changed

Lines changed: 2252 additions & 93 deletions

File tree

app/cli/cmd/auth_login.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"time"
3030

3131
pb "github.com/chainloop-dev/chainloop/app/controlplane/api/controlplane/v1"
32+
"github.com/chainloop-dev/chainloop/internal/oauth"
3233
jwt "github.com/golang-jwt/jwt/v4"
3334
"github.com/spf13/cobra"
3435
"github.com/spf13/viper"
@@ -70,7 +71,8 @@ func interactiveAuth() error {
7071
}
7172
// Append local callback URL
7273
q := serverLoginURL.Query()
73-
q.Set("callback", callbackURL.String())
74+
q.Set(oauth.QueryParamCallback, callbackURL.String())
75+
q.Set(oauth.QueryParamLongLived, "true")
7476
serverLoginURL.RawQuery = q.Encode()
7577

7678
err = openbrowser(serverLoginURL.String())

app/controlplane/api/controlplane/v1/cas_redirect.pb.go

Lines changed: 305 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)