我正在尝试配置后台应用程序以与 Azure Devops 连接
这是我的 env.sh :
#!/bin/bash
export AZURE_CLIENT_ID=*********************************...
export AZURE_TENANT_ID=*********************************...
export AZURE_CLIENT_SECRET=*********************************...
这是我的 app-config.yaml 的一部分
auth:
environment: development
providers:
microsoft:
development:
clientId: ${AZURE_CLIENT_ID}
clientSecret: ${AZURE_CLIENT_SECRET}
tenantId: ${AZURE_TENANT_ID}
domainHint: ${AZURE_TENANT_ID}
signIn:
resolvers:
- resolver: userIdMatchingUserEntityAnnotation
integrations:
azure:
- host: dev.azure.com
credentials:
- clientId: ${AZURE_CLIENT_ID}
clientSecret: ${AZURE_CLIENT_SECRET}
tenantId: ${AZURE_TENANT_ID}
我还在我的index.ts文件中添加了所需的模块
...
// catalog plugin
backend.add(import('@backstage/plugin-catalog-backend'));
// mods for ado
backend.add(import('@backstage/plugin-auth-backend-module-microsoft-provider'));
backend.add(import('@backstage/plugin-catalog-backend-module-azure'));
还补充了
yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-microsoft-provider
yarn --cwd packages/backend add @backstage/plugin-catalog-backend-module-azure
我还修改了packages/backend/src/index.ts:
components: {
SignInPage: props => (
<SignInPage
{...props}
auto
providers={[
{
id: 'azure-devops-auth-provider',
title: 'Azure DevOps',
message: 'Sign in using Azure DevOps',
apiRef: microsoftAuthApiRef,
},
]}
/>
),
},
我可以登录,但 Azure SSO 似乎缺少返回地址:未提供回复地址
感谢您的帮助
应在azure应用程序注册中添加请求uri