Skip to content

Commit 0761885

Browse files
Add warning regarding migration to new IDP (#399)
* Add warning regarding migration to new IDP * Update internal/cmd/auth/login/login.go Co-authored-by: Diogo Ferrão <[email protected]> --------- Co-authored-by: Diogo Ferrão <[email protected]>
1 parent 43b7c2f commit 0761885

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/cmd/auth/login/login.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ func NewCmd(p *print.Printer) *cobra.Command {
2323
"$ stackit auth login"),
2424
),
2525
RunE: func(cmd *cobra.Command, args []string) error {
26+
p.Warn(fmt.Sprintf("%s\n%s\n%s\n%s\n%s\n\n",
27+
"Starting on July 9 2024, the new STACKIT Identity Provider (IDP) will be available.",
28+
"On this date, we will release a new version of the STACKIT CLI that will use the new IDP for user authentication.",
29+
"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.",
30+
"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.",
31+
"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",
32+
))
33+
2634
err := auth.AuthorizeUser(p, false)
2735
if err != nil {
2836
return fmt.Errorf("authorization failed: %w", err)

0 commit comments

Comments
 (0)