Line: 1059
func (l *Login) oidcProvider(ctx context.Context, identityProvider *query.IDPTemplate, authReq *domain.AuthRequest) (*openid.Provider, error)
// Instead this method, replace:
opts := make([]openid.ProviderOpts, 1, 3)
opts[0] = openid.WithSelectAccount()
// With (Only add WithSelectAccount if the auth request doesn't already have a prompt parameter)
opts := make([]openid.ProviderOpts, 0, 3)
if !domain.IsPrompt(authReq.Prompt, domain.PromptSelectAccount) && len(authReq.Prompt) == 0 {
opts = append(opts, openid.WithSelectAccount())
}
Line: 1059
func (l *Login) oidcProvider(ctx context.Context, identityProvider *query.IDPTemplate, authReq *domain.AuthRequest) (*openid.Provider, error)
// Instead this method, replace:
opts := make([]openid.ProviderOpts, 1, 3)
opts[0] = openid.WithSelectAccount()
// With (Only add WithSelectAccount if the auth request doesn't already have a prompt parameter)
opts := make([]openid.ProviderOpts, 0, 3)
if !domain.IsPrompt(authReq.Prompt, domain.PromptSelectAccount) && len(authReq.Prompt) == 0 {
opts = append(opts, openid.WithSelectAccount())
}