Files
backstage/plugins/auth-node/CHANGELOG.md
T
github-actions[bot] 003494838b Version Packages (next)
2024-08-13 13:59:06 +00:00

37 KiB

@backstage/plugin-auth-node

0.5.0-next.3

Patch Changes

  • Updated dependencies
    • @backstage/backend-plugin-api@0.8.0-next.3
    • @backstage/backend-common@0.23.4-next.3
    • @backstage/catalog-model@1.6.0-next.0
    • @backstage/catalog-client@1.6.6-next.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.5.0-next.2

Minor Changes

  • 579afd0: BREAKING: Sign-in resolvers configured via .signIn.resolvers now take precedence over sign-in resolvers passed to signInResolver option of createOAuthProviderFactory. This effectively makes sign-in resolvers passed via the signInResolver the default one, which you can then override through configuration.

Patch Changes

  • 93095ee: Make sure node-fetch is version 2.7.0 or greater
  • Updated dependencies
    • @backstage/backend-plugin-api@0.8.0-next.2
    • @backstage/backend-common@0.23.4-next.2
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.18-next.1

Patch Changes

  • Updated dependencies
    • @backstage/backend-plugin-api@0.7.1-next.1
    • @backstage/backend-common@0.23.4-next.1
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.18-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.23.4-next.0
    • @backstage/backend-plugin-api@0.7.1-next.0
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.17

Patch Changes

  • 55c1a72: Fix issues with Atlassian OAuth provider: retrieve the email and photo that were not in arrays but rather in single props.
  • Updated dependencies
    • @backstage/backend-plugin-api@0.7.0
    • @backstage/backend-common@0.23.3
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.17-next.1

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.23.3-next.1
    • @backstage/backend-plugin-api@0.6.22-next.1
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.16-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-plugin-api@0.6.21-next.0
    • @backstage/backend-common@0.23.2-next.0
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.14

Patch Changes

  • 798ec37: Updated scope management for OAuth providers, where the createOAuthAuthenticator now accepts a new collection of scopes options:

    • scopes.persist - Whether scopes should be persisted, replaces the shouldPersistScopes option.
    • scopes.required - A list of required scopes that will always be requested.
    • scopes.transform - A function that can be used to transform the scopes before they are requested.

    The createOAuthProviderFactory has also received a new additionalScopes option, and will also read additionalScopes from the auth provider configuration. Both of these can be used to add additional scopes that should always be requested.

    A significant change under the hood that this new scope management brings is that providers that persist scopes will now always merge the already granted scopes with the requested ones. The previous behavior was that the full authorization flow would not include existing scopes, while the refresh flow would only include the existing scopes.

  • d44a20a: Added additional plugin metadata to package.json.

  • Updated dependencies

    • @backstage/backend-common@0.23.0
    • @backstage/backend-plugin-api@0.6.19
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.14-next.3

Patch Changes

  • 798ec37: Updated scope management for OAuth providers, where the createOAuthAuthenticator now accepts a new collection of scopes options:

    • scopes.persist - Whether scopes should be persisted, replaces the shouldPersistScopes option.
    • scopes.required - A list of required scopes that will always be requested.
    • scopes.transform - A function that can be used to transform the scopes before they are requested.

    The createOAuthProviderFactory has also received a new additionalScopes option, and will also read additionalScopes from the auth provider configuration. Both of these can be used to add additional scopes that should always be requested.

    A significant change under the hood that this new scope management brings is that providers that persist scopes will now always merge the already granted scopes with the requested ones. The previous behavior was that the full authorization flow would not include existing scopes, while the refresh flow would only include the existing scopes.

  • d44a20a: Added additional plugin metadata to package.json.

  • Updated dependencies

    • @backstage/backend-plugin-api@0.6.19-next.3
    • @backstage/backend-common@0.23.0-next.3
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.14-next.2

Patch Changes

  • Updated dependencies
    • @backstage/backend-plugin-api@0.6.19-next.2
    • @backstage/backend-common@0.23.0-next.2
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.14-next.1

Patch Changes

0.4.14-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.22.1-next.0
    • @backstage/backend-plugin-api@0.6.19-next.0
    • @backstage/catalog-client@1.6.5
    • @backstage/catalog-model@1.5.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.13

Patch Changes

  • ea9262b: Allow overriding default ownership resolving with the new AuthOwnershipResolutionExtensionPoint
  • Updated dependencies

0.4.13-next.1

Patch Changes

0.4.13-next.0

Patch Changes

  • ea9262b: Allow overriding default ownership resolving with the new AuthOwnershipResolutionExtensionPoint
  • Updated dependencies
    • @backstage/catalog-model@1.5.0-next.0
    • @backstage/backend-common@0.21.8-next.0
    • @backstage/backend-plugin-api@0.6.18-next.0
    • @backstage/catalog-client@1.6.5-next.0
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.12

Patch Changes

  • d62bc51: Add tokenTypes export with constants for various Backstage token types.
  • Updated dependencies
    • @backstage/backend-common@0.21.7
    • @backstage/backend-plugin-api@0.6.17
    • @backstage/catalog-client@1.6.4
    • @backstage/catalog-model@1.4.5
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.12-next.1

Patch Changes

  • d62bc51: Add tokenTypes export with constants for various Backstage token types.
  • Updated dependencies
    • @backstage/backend-common@0.21.7-next.1
    • @backstage/backend-plugin-api@0.6.17-next.1
    • @backstage/catalog-client@1.6.4-next.0
    • @backstage/catalog-model@1.4.5
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.12-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.21.7-next.0
    • @backstage/backend-plugin-api@0.6.17-next.0
    • @backstage/catalog-client@1.6.3
    • @backstage/catalog-model@1.4.5
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.11

Patch Changes

  • 038b2e6: Only consider entities of kind User when using findCatalogUser with a filter query, unless an explicit kind filter is provided.
  • Updated dependencies
    • @backstage/catalog-client@1.6.3
    • @backstage/backend-common@0.21.6
    • @backstage/backend-plugin-api@0.6.16
    • @backstage/catalog-model@1.4.5
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.10

Patch Changes

  • Updated dependencies
    • @backstage/catalog-client@1.6.2
    • @backstage/backend-common@0.21.5
    • @backstage/backend-plugin-api@0.6.15
    • @backstage/catalog-model@1.4.5
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/types@1.1.1

0.4.9

Patch Changes

  • b4fc6e3: Deprecated the getBearerTokenFromAuthorizationHeader function, which is being replaced by the new HttpAuthService.
  • 2af5354: Bump dependency jose to v5
  • 0fb419b: Updated dependency uuid to ^9.0.0. Updated dependency @types/uuid to ^9.0.0.
  • b1b012d: Fix issue with providerInfo not being set properly for some proxy providers, by making providerInfo an explicit optional return from authenticate
  • Updated dependencies
    • @backstage/backend-common@0.21.4
    • @backstage/config@1.2.0
    • @backstage/errors@1.2.4
    • @backstage/backend-plugin-api@0.6.14
    • @backstage/catalog-client@1.6.1
    • @backstage/catalog-model@1.4.5
    • @backstage/types@1.1.1

0.4.9-next.2

Patch Changes

  • Updated dependencies
    • @backstage/catalog-client@1.6.1-next.1
    • @backstage/backend-common@0.21.4-next.2
    • @backstage/backend-plugin-api@0.6.14-next.2
    • @backstage/catalog-model@1.4.5-next.0
    • @backstage/config@1.2.0-next.1
    • @backstage/errors@1.2.4-next.0
    • @backstage/types@1.1.1

0.4.9-next.1

Patch Changes

  • Updated dependencies
    • @backstage/config@1.2.0-next.1
    • @backstage/backend-common@0.21.4-next.1
    • @backstage/backend-plugin-api@0.6.14-next.1
    • @backstage/catalog-client@1.6.1-next.0
    • @backstage/catalog-model@1.4.5-next.0
    • @backstage/errors@1.2.4-next.0
    • @backstage/types@1.1.1

0.4.8-next.0

Patch Changes

  • b4fc6e3: Deprecated the getBearerTokenFromAuthorizationHeader function, which is being replaced by the new HttpAuthService.
  • 2af5354: Bump dependency jose to v5
  • 0fb419b: Updated dependency uuid to ^9.0.0. Updated dependency @types/uuid to ^9.0.0.
  • b1b012d: Fix issue with providerInfo not being set properly for some proxy providers, by making providerInfo an explicit optional return from authenticate
  • Updated dependencies
    • @backstage/backend-common@0.21.3-next.0
    • @backstage/errors@1.2.4-next.0
    • @backstage/backend-plugin-api@0.6.13-next.0
    • @backstage/catalog-client@1.6.1-next.0
    • @backstage/catalog-model@1.4.5-next.0
    • @backstage/config@1.1.2-next.0
    • @backstage/types@1.1.1

0.4.4

Patch Changes

  • 71c3b7f: Fix error when Microsoft tokens (or any other using the defaultProfileTransform) are requested without the profile scope.
  • d4cc552: The helper function makeProfileInfo and PassportHelpers.transformProfile were refactored to use the jose library.
  • Updated dependencies
    • @backstage/backend-common@0.21.0
    • @backstage/backend-plugin-api@0.6.10
    • @backstage/catalog-model@1.4.4
    • @backstage/catalog-client@1.6.0
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.4-next.3

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.21.0-next.3
    • @backstage/backend-plugin-api@0.6.10-next.3
    • @backstage/catalog-client@1.6.0-next.1
    • @backstage/catalog-model@1.4.4-next.0
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.4-next.2

Patch Changes

  • d4cc552: The helper function makeProfileInfo and PassportHelpers.transformProfile were refactored to use the jose library.
  • Updated dependencies
    • @backstage/backend-common@0.21.0-next.2
    • @backstage/backend-plugin-api@0.6.10-next.2
    • @backstage/config@1.1.1
    • @backstage/catalog-client@1.6.0-next.1
    • @backstage/catalog-model@1.4.4-next.0
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.4-next.1

Patch Changes

  • Updated dependencies
    • @backstage/catalog-model@1.4.4-next.0
    • @backstage/catalog-client@1.6.0-next.1
    • @backstage/backend-plugin-api@0.6.10-next.1
    • @backstage/backend-common@0.21.0-next.1
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.4-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.21.0-next.0
    • @backstage/catalog-client@1.6.0-next.0
    • @backstage/backend-plugin-api@0.6.10-next.0
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.3

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.20.1
    • @backstage/catalog-client@1.5.2
    • @backstage/backend-plugin-api@0.6.9
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.3-next.2

Patch Changes

0.4.3-next.1

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.20.1-next.1
    • @backstage/config@1.1.1
    • @backstage/backend-plugin-api@0.6.9-next.1
    • @backstage/catalog-client@1.5.2-next.0
    • @backstage/catalog-model@1.4.3
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.3-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.20.1-next.0
    • @backstage/catalog-client@1.5.2-next.0
    • @backstage/backend-plugin-api@0.6.9-next.0
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.2

Patch Changes

0.4.2-next.3

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.20.0-next.3
    • @backstage/backend-plugin-api@0.6.8-next.3
    • @backstage/catalog-client@1.5.0-next.1
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.2-next.2

Patch Changes

  • a62764b: Updated dependency passport to ^0.7.0.
  • Updated dependencies
    • @backstage/backend-common@0.20.0-next.2
    • @backstage/catalog-client@1.5.0-next.1
    • @backstage/backend-plugin-api@0.6.8-next.2
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.2-next.1

Patch Changes

  • Updated dependencies
    • @backstage/catalog-client@1.5.0-next.0
    • @backstage/backend-common@0.20.0-next.1
    • @backstage/backend-plugin-api@0.6.8-next.1
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.2-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.20.0-next.0
    • @backstage/backend-plugin-api@0.6.8-next.0
    • @backstage/catalog-client@1.4.6
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.1

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.19.9
    • @backstage/backend-plugin-api@0.6.7
    • @backstage/catalog-client@1.4.6
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.1-next.2

Patch Changes

0.4.1-next.1

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.19.9-next.1
    • @backstage/backend-plugin-api@0.6.7-next.1
    • @backstage/catalog-client@1.4.5
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.1-next.0

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.19.9-next.0
    • @backstage/backend-plugin-api@0.6.7-next.0
    • @backstage/catalog-client@1.4.5
    • @backstage/catalog-model@1.4.3
    • @backstage/config@1.1.1
    • @backstage/errors@1.2.3
    • @backstage/types@1.1.1

0.4.0

Minor Changes

  • 6f142d5356: BREAKING: The recently introduced ProxyAuthenticator.initialize() method is no longer async to match the way the OAuth equivalent is implemented.

Patch Changes

  • 6c2b0793bf: Fix for persisted scopes not being properly restored on sign-in.
  • 8b8b1d23ae: Fixed cookie persisted scope not returned in OAuth refresh handler response.
  • ae34255836: Adding optional audience parameter to OAuthState type declaration
  • Updated dependencies
    • @backstage/backend-common@0.19.8
    • @backstage/catalog-model@1.4.3
    • @backstage/errors@1.2.3
    • @backstage/backend-plugin-api@0.6.6
    • @backstage/catalog-client@1.4.5
    • @backstage/config@1.1.1
    • @backstage/types@1.1.1

0.4.0-next.2

Minor Changes

  • 6f142d5356: BREAKING: The recently introduced ProxyAuthenticator.initialize() method is no longer async to match the way the OAuth equivalent is implemented.

Patch Changes

  • 8b8b1d23ae: Fixed cookie persisted scope not returned in OAuth refresh handler response.
  • Updated dependencies
    • @backstage/backend-common@0.19.8-next.2
    • @backstage/catalog-model@1.4.3-next.0
    • @backstage/errors@1.2.3-next.0
    • @backstage/backend-plugin-api@0.6.6-next.2
    • @backstage/catalog-client@1.4.5-next.0
    • @backstage/config@1.1.1-next.0
    • @backstage/types@1.1.1

0.3.2-next.1

Patch Changes

  • Updated dependencies
    • @backstage/backend-common@0.19.7-next.1
    • @backstage/backend-plugin-api@0.6.5-next.1
    • @backstage/config@1.1.0
    • @backstage/catalog-client@1.4.4
    • @backstage/catalog-model@1.4.2
    • @backstage/errors@1.2.2
    • @backstage/types@1.1.1

0.3.2-next.0

Patch Changes

  • 6c2b0793bf: Fix for persisted scopes not being properly restored on sign-in.
  • Updated dependencies
    • @backstage/backend-common@0.19.7-next.0
    • @backstage/config@1.1.0
    • @backstage/backend-plugin-api@0.6.5-next.0
    • @backstage/catalog-client@1.4.4
    • @backstage/catalog-model@1.4.2
    • @backstage/errors@1.2.2
    • @backstage/types@1.1.1

0.3.0

Minor Changes

  • 8513cd7d00: Introduced a new system for building auth providers for @backstage/plugin-auth-backend, which both increases the amount of code re-use across providers, and also works better with the new backend system.

    Many existing types have been moved from @backstage/plugin-auth-backend in order to avoid a direct dependency on the plugin from modules.

    Auth provider integrations are now primarily implemented through a pattern of creating "authenticators", which are in turn specific to each kind of integrations. Initially there are two types: createOAuthAuthenticator and createProxyAuthenticator. These come paired with functions that let you create the corresponding route handlers, createOAuthRouteHandlers and createProxyAuthRouteHandlers, as well as provider factories, createOAuthProviderFactory and createProxyAuthProviderFactory. This new authenticator pattern allows the sign-in logic to be separated from the auth integration logic, allowing it to be completely re-used across all providers of the same kind.

    The new provider factories also implement a new declarative way to configure sign-in resolvers, rather than configuration through code. Sign-in resolvers can now be configured through the resolvers configuration key, where the first resolver that provides an identity will be used, for example:

    auth:
      providers:
        google:
          development:
            clientId: ...
            clientSecret: ...
            signIn:
              resolvers:
                - resolver: emailMatchingUserEntityAnnotation
                - resolver: emailLocalPartMatchingUserEntityName
    

    These configurable resolvers are created with a new createSignInResolverFactory function, which creates a sign-in resolver factory, optionally with an options schema that will be used both when configuring the sign-in resolver through configuration and code.

    The internal helpers from @backstage/plugin-auth-backend that were used to implement auth providers using passport strategies have now also been made available as public API, through PassportHelpers and PassportOAuthAuthenticatorHelper.

Patch Changes

  • 18619f793c: The BackstageIdentityResponse interface now has an optional expiresInSeconds field that can be used to signal session expiration. The prepareBackstageIdentityResponse utility will now also read the expiration from the provided token, and include it in the response.
  • Updated dependencies
    • @backstage/backend-common@0.19.5
    • @backstage/config@1.1.0
    • @backstage/catalog-client@1.4.4
    • @backstage/catalog-model@1.4.2
    • @backstage/errors@1.2.2
    • @backstage/types@1.1.1
    • @backstage/backend-plugin-api@0.6.3

0.3.0-next.3

Patch Changes

  • Updated dependencies
    • @backstage/catalog-client@1.4.4-next.2
    • @backstage/catalog-model@1.4.2-next.2
    • @backstage/config@1.1.0-next.2
    • @backstage/errors@1.2.2-next.0
    • @backstage/types@1.1.1-next.0
    • @backstage/backend-plugin-api@0.6.3-next.3
    • @backstage/backend-common@0.19.5-next.3

0.3.0-next.2

Patch Changes

  • Updated dependencies
    • @backstage/config@1.1.0-next.1
    • @backstage/backend-common@0.19.5-next.2
    • @backstage/backend-plugin-api@0.6.3-next.2
    • @backstage/catalog-model@1.4.2-next.1
    • @backstage/catalog-client@1.4.4-next.1
    • @backstage/errors@1.2.1
    • @backstage/types@1.1.0

0.3.0-next.1

Patch Changes

  • Updated dependencies
    • @backstage/config@1.1.0-next.0
    • @backstage/backend-common@0.19.5-next.1
    • @backstage/backend-plugin-api@0.6.3-next.1
    • @backstage/catalog-model@1.4.2-next.0
    • @backstage/catalog-client@1.4.4-next.0
    • @backstage/errors@1.2.1
    • @backstage/types@1.1.0

0.3.0-next.0

Minor Changes

  • 8513cd7d00: Introduced a new system for building auth providers for @backstage/plugin-auth-backend, which both increases the amount of code re-use across providers, and also works better with the new backend system.

    Many existing types have been moved from @backstage/plugin-auth-backend in order to avoid a direct dependency on the plugin from modules.

    Auth provider integrations are now primarily implemented through a pattern of creating "authenticators", which are in turn specific to each kind of integrations. Initially there are two types: createOAuthAuthenticator and createProxyAuthenticator. These come paired with functions that let you create the corresponding route handlers, createOAuthRouteHandlers and createProxyAuthRouteHandlers, as well as provider factories, createOAuthProviderFactory and createProxyAuthProviderFactory. This new authenticator pattern allows the sign-in logic to be separated from the auth integration logic, allowing it to be completely re-used across all providers of the same kind.

    The new provider factories also implement a new declarative way to configure sign-in resolvers, rather than configuration through code. Sign-in resolvers can now be configured through the resolvers configuration key, where the first resolver that provides an identity will be used, for example:

    auth:
      providers:
        google:
          development:
            clientId: ...
            clientSecret: ...
            signIn:
              resolvers:
                - resolver: emailMatchingUserEntityAnnotation
                - resolver: emailLocalPartMatchingUserEntityName
    

    These configurable resolvers are created with a new createSignInResolverFactory function, which creates a sign-in resolver factory, optionally with an options schema that will be used both when configuring the sign-in resolver through configuration and code.

    The internal helpers from @backstage/plugin-auth-backend that were used to implement auth providers using passport strategies have now also been made available as public API, through PassportHelpers and PassportOAuthAuthenticatorHelper.

Patch Changes

  • 18619f793c: The BackstageIdentityResponse interface now has an optional expiresInSeconds field that can be used to signal session expiration. The prepareBackstageIdentityResponse utility will now also read the expiration from the provided token, and include it in the response.
  • Updated dependencies
    • @backstage/backend-common@0.19.4-next.0
    • @backstage/backend-plugin-api@0.6.2-next.0
    • @backstage/catalog-client@1.4.3
    • @backstage/catalog-model@1.4.1
    • @backstage/config@1.0.8
    • @backstage/errors@1.2.1
    • @backstage/types@1.1.0

0.2.17

Patch Changes

0.2.17-next.2

Patch Changes

0.2.17-next.1

Patch Changes

0.2.17-next.0

Patch Changes

0.2.16

Patch Changes

0.2.16-next.0

Patch Changes

0.2.15

Patch Changes

0.2.15-next.2

Patch Changes

0.2.15-next.1

Patch Changes

0.2.15-next.0

Patch Changes

0.2.14

Patch Changes

0.2.14-next.1

Patch Changes

0.2.14-next.0

Patch Changes

0.2.13

Patch Changes

0.2.13-next.2

Patch Changes

0.2.13-next.1

Patch Changes

0.2.13-next.0

Patch Changes

0.2.12

Patch Changes

0.2.12-next.2

Patch Changes

0.2.12-next.1

Patch Changes

0.2.12-next.0

Patch Changes

0.2.11

Patch Changes

0.2.11-next.2

Patch Changes

0.2.11-next.1

Patch Changes

0.2.11-next.0

Patch Changes

0.2.9

Patch Changes

0.2.9-next.1

Patch Changes

0.2.9-next.0

Patch Changes

0.2.8

Patch Changes

0.2.8-next.3

Patch Changes

0.2.8-next.2

Patch Changes

0.2.8-next.1

Patch Changes

0.2.8-next.0

Patch Changes

0.2.7

Patch Changes

0.2.7-next.1

Patch Changes

0.2.7-next.0

Patch Changes

  • 7573b65232: Internal refactor of imports to avoid circular dependencies
  • Updated dependencies

0.2.6

Patch Changes

  • f3a3fefb96: Ensure getIdentity throws an AuthenticationError instead of a NotAllowed error when authentication fails
  • Updated dependencies

0.2.6-next.2

Patch Changes

0.2.6-next.1

Patch Changes

0.2.6-next.0

Patch Changes

0.2.5

Patch Changes

  • 9212439d15: Minor update to tests
  • 2cbd533426: IdentityClient is now deprecated. Please migrate to IdentityApi and DefaultIdentityClient instead. The authenticate function on DefaultIdentityClient is also deprecated. Please use getIdentity instead.
  • 667d917488: Updated dependency msw to ^0.47.0.
  • 87ec2ba4d6: Updated dependency msw to ^0.46.0.
  • bf5e9030eb: Updated dependency msw to ^0.45.0.
  • Updated dependencies

0.2.5-next.3

Patch Changes

0.2.5-next.2

Patch Changes

  • 2cbd533426: IdentityClient is now deprecated. Please migrate to IdentityApi and DefaultIdentityClient instead. The authenticate function on DefaultIdentityClient is also deprecated. Please use getIdentity instead.
  • 667d917488: Updated dependency msw to ^0.47.0.
  • 87ec2ba4d6: Updated dependency msw to ^0.46.0.
  • Updated dependencies

0.2.5-next.1

Patch Changes

0.2.5-next.0

Patch Changes

0.2.4

Patch Changes

0.2.4-next.0

Patch Changes

0.2.3

Patch Changes

0.2.3-next.2

Patch Changes

0.2.3-next.1

Patch Changes

0.2.3-next.0

Patch Changes

0.2.2

Patch Changes

0.2.2-next.2

Patch Changes

0.2.2-next.1

Patch Changes

0.2.2-next.0

Patch Changes

0.2.1

Patch Changes

0.2.1-next.1

Patch Changes

0.2.1-next.0

Patch Changes

0.2.0

Minor Changes

  • 15d3a3c39a: BREAKING: Removed the deprecated id and entity fields from BackstageSignInResult.

Patch Changes

0.2.0-next.0

Minor Changes

  • 15d3a3c39a: BREAKING: Removed the deprecated id and entity fields from BackstageSignInResult.

Patch Changes

0.1.6

Patch Changes

0.1.5

Patch Changes

0.1.5-next.0

Patch Changes

0.1.4

Patch Changes

0.1.3

Patch Changes

0.1.2

Patch Changes

0.1.1

Patch Changes

0.1.0

Minor Changes

  • 9058bb1b5e: Added this package, to hold shared types and functionality that other backend packages need to import.

Patch Changes