AuthService
Home > @backstage/backend-plugin-api
> AuthService
Provides token authentication and credentials management.
See the service documentation for more details.
Signature:
export interface AuthService
Methods
Method |
Description |
---|---|
Verifies a token and returns the associated credentials. | |
Issue a limited user token that can be used e.g. in cookie flows. | |
Create a credentials object that represents an unauthenticated caller. | |
Create a credentials object that represents the current service itself. | |
Issue a token that can be used for authenticating calls towards other backend plugins. | |
Checks if the given credentials are of the given type, and narrows the TypeScript type accordingly if there's a match. | |
Retrieve the public keys that have been used to sign tokens that were issued by this service. This list is periodically pruned from keys that are significantly past their expiry. |