From 4409338f9cdc5c350a1b2626aa8400ddc92d0db5 Mon Sep 17 00:00:00 2001 From: "test.test@freiheit.com" Date: Wed, 3 Jul 2024 15:59:34 +0100 Subject: [PATCH 1/2] Add warning regarding migration to new IDP --- internal/cmd/auth/login/login.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/cmd/auth/login/login.go b/internal/cmd/auth/login/login.go index 3ba46f3d5..df76ed18e 100644 --- a/internal/cmd/auth/login/login.go +++ b/internal/cmd/auth/login/login.go @@ -23,6 +23,14 @@ func NewCmd(p *print.Printer) *cobra.Command { "$ stackit auth login"), ), RunE: func(cmd *cobra.Command, args []string) error { + p.Warn(fmt.Sprintf("%s\n%s\n%s\n%s\n%s\n\n", + "Starting on July 9 2024, the new STACKIT Identity Provider (IDP) will be available.", + "On this date, we will release a new version of the STACKIT CLI that will use the new IDP for user authentication.", + "This also means that the user authentication on STACKIT CLI versions released before July 9 2024 is no longer guaranteed to work for all services.", + "Please make sure to update your STACKIT CLI to the latest version after July 9 2024 to ensure that you can continue to use all STACKIT services.", + "You can find more information regarding the new IDP at https://docs.stackit.cloud/stackit/en/release-notes-23101442.html#ReleaseNotes-2024-06-21-identity-provider.", + )) + err := auth.AuthorizeUser(p, false) if err != nil { return fmt.Errorf("authorization failed: %w", err) From 3bd6adcfaedd9e2f51c42d467ac7c59309bd45cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Palet?= Date: Wed, 3 Jul 2024 16:10:05 +0100 Subject: [PATCH 2/2] Update internal/cmd/auth/login/login.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Diogo Ferrão --- internal/cmd/auth/login/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/auth/login/login.go b/internal/cmd/auth/login/login.go index df76ed18e..90bc05b02 100644 --- a/internal/cmd/auth/login/login.go +++ b/internal/cmd/auth/login/login.go @@ -28,7 +28,7 @@ func NewCmd(p *print.Printer) *cobra.Command { "On this date, we will release a new version of the STACKIT CLI that will use the new IDP for user authentication.", "This also means that the user authentication on STACKIT CLI versions released before July 9 2024 is no longer guaranteed to work for all services.", "Please make sure to update your STACKIT CLI to the latest version after July 9 2024 to ensure that you can continue to use all STACKIT services.", - "You can find more information regarding the new IDP at https://docs.stackit.cloud/stackit/en/release-notes-23101442.html#ReleaseNotes-2024-06-21-identity-provider.", + "You can find more information regarding the new IDP at https://docs.stackit.cloud/stackit/en/release-notes-23101442.html#ReleaseNotes-2024-06-21-identity-provider", )) err := auth.AuthorizeUser(p, false)