Namespace Line.OpenApi.Core.Authentication
Classes
- LineHosts
LINE API hosts. To prepare for future additions (e.g. manager.line.biz), the set of allowed hosts is centralized here rather than hard-coded, so it can be injected and extended when a provider is created.
- StaticBearerTokenProvider
Generic provider that holds and returns a single Bearer token, gated by an allow list of hosts. It is the credential-agnostic counterpart of StaticChannelAccessTokenProvider: use it to attach a caller-supplied token (for example a LINE Login user access token) to requests, while ensuring the token is never sent to a host outside the allow list.
Like StaticChannelAccessTokenProvider, it wires into Kiota's Microsoft.Kiota.Abstractions.Authentication.BaseBearerTokenAuthenticationProvider as an Microsoft.Kiota.Abstractions.Authentication.IAccessTokenProvider. It is kept as a distinct type (rather than folding the channel-token provider into it) so each usage keeps a self-describing name at the call site.
- StaticChannelAccessTokenProvider
Minimal provider that holds and returns a long-lived channel access token. Runtime issuance/refresh of short-lived tokens (v2.1 / JWT) is implemented by the "refreshing provider" in Line.OpenApi.ChannelAccessToken, so that Core takes no reverse dependency on it (design section 7).