Version Packages
This commit is contained in:
@@ -1,5 +1,77 @@
|
||||
# @backstage/plugin-auth-backend
|
||||
|
||||
## 0.3.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 1deb31141: Remove undocumented scope (default) from the OIDC auth provider which was breaking some identity services. If your app relied on this scope, you can manually specify it by adding a new factory in `packages/app/src/apis.ts`:
|
||||
|
||||
```
|
||||
export const apis = [
|
||||
createApiFactory({
|
||||
api: oidcAuthApiRef,
|
||||
deps: {
|
||||
discoveryApi: discoveryApiRef,
|
||||
oauthRequestApi: oauthRequestApiRef,
|
||||
configApi: configApiRef,
|
||||
},
|
||||
factory: ({ discoveryApi, oauthRequestApi, configApi }) =>
|
||||
OAuth2.create({
|
||||
discoveryApi,
|
||||
oauthRequestApi,
|
||||
provider: {
|
||||
id: 'oidc',
|
||||
title: 'Your Identity Provider',
|
||||
icon: OAuth2Icon,
|
||||
},
|
||||
defaultScopes: [
|
||||
'default',
|
||||
'openid',
|
||||
'email',
|
||||
'offline_access',
|
||||
],
|
||||
environment: configApi.getOptionalString('auth.environment'),
|
||||
}),
|
||||
}),
|
||||
];
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 6ed2b47d6: Include Backstage identity token in requests to backend plugins.
|
||||
- 07bafa248: Add configurable `scope` for oauth2 auth provider.
|
||||
|
||||
Some OAuth2 providers require certain scopes to facilitate a user sign-in using the Authorization Code flow.
|
||||
This change adds the optional `scope` key to auth.providers.oauth2. An example is:
|
||||
|
||||
```yaml
|
||||
auth:
|
||||
providers:
|
||||
oauth2:
|
||||
development:
|
||||
clientId:
|
||||
$env: DEV_OAUTH2_CLIENT_ID
|
||||
clientSecret:
|
||||
$env: DEV_OAUTH2_CLIENT_SECRET
|
||||
authorizationUrl:
|
||||
$env: DEV_OAUTH2_AUTH_URL
|
||||
tokenUrl:
|
||||
$env: DEV_OAUTH2_TOKEN_URL
|
||||
scope: saml-login-selector openid profile email
|
||||
```
|
||||
|
||||
This tells the OAuth 2.0 AS to perform a SAML login and return OIDC information include the `profile`
|
||||
and `email` claims as part of the ID Token.
|
||||
|
||||
- Updated dependencies [6ed2b47d6]
|
||||
- Updated dependencies [ffffea8e6]
|
||||
- Updated dependencies [82b2c11b6]
|
||||
- Updated dependencies [965e200c6]
|
||||
- Updated dependencies [72b96e880]
|
||||
- Updated dependencies [5a5163519]
|
||||
- @backstage/catalog-client@0.3.6
|
||||
- @backstage/backend-common@0.5.3
|
||||
|
||||
## 0.2.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend",
|
||||
"version": "0.2.12",
|
||||
"version": "0.3.0",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
@@ -29,8 +29,8 @@
|
||||
"clean": "backstage-cli clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/backend-common": "^0.5.2",
|
||||
"@backstage/catalog-client": "^0.3.5",
|
||||
"@backstage/backend-common": "^0.5.3",
|
||||
"@backstage/catalog-client": "^0.3.6",
|
||||
"@backstage/catalog-model": "^0.7.1",
|
||||
"@backstage/config": "^0.1.2",
|
||||
"@types/express": "^4.17.6",
|
||||
|
||||
Reference in New Issue
Block a user