/*
 * Copyright 2020 Spotify AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import {
  googleAuthApiRef,
  gitlabAuthApiRef,
  oktaAuthApiRef,
  githubAuthApiRef,
  samlAuthApiRef,
  microsoftAuthApiRef,
  oneloginAuthApiRef,
  oidcAuthApiRef,
} from '@backstage/core';

export const providers = [
  {
    id: 'oidc-auth-provider',
    title: 'Oidc',
    message: 'Sign In using OpenId Connect',
    apiRef: oidcAuthApiRef,
  },
  {
    id: 'google-auth-provider',
    title: 'Google',
    message: 'Sign In using Google',
    apiRef: googleAuthApiRef,
  },
  {
    id: 'microsoft-auth-provider',
    title: 'Microsoft',
    message: 'Sign In using Microsoft Azure AD',
    apiRef: microsoftAuthApiRef,
  },
  {
    id: 'gitlab-auth-provider',
    title: 'GitLab',
    message: 'Sign In using GitLab',
    apiRef: gitlabAuthApiRef,
  },
  {
    id: 'github-auth-provider',
    title: 'GitHub',
    message: 'Sign In using GitHub',
    apiRef: githubAuthApiRef,
  },
  {
    id: 'okta-auth-provider',
    title: 'Okta',
    message: 'Sign In using Okta',
    apiRef: oktaAuthApiRef,
  },
  {
    id: 'saml-auth-provider',
    title: 'SAML',
    message: 'Sign In using SAML',
    apiRef: samlAuthApiRef,
  },
  {
    id: 'onelogin-auth-provider',
    title: 'OneLogin',
    message: 'Sign In using OneLogin',
    apiRef: oneloginAuthApiRef,
  },
];
