Skip to content

Add warning regarding migration to new IDP #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions internal/cmd/auth/login/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down