McpOAuthTokens
class McpOAuthTokens(registration: McpOAuthRegistration, store: TokenStore, client: OAuthClient = OAuthClient(), now: () -> Long = System::currentTimeMillis) : McpAuth(source)
McpAuth over OAuth tokens kept in store: refreshes shortly before expiry and after a 401, single-flight, sending the resource indicator.
Constructors
Link copied to clipboard
constructor(registration: McpOAuthRegistration, store: TokenStore, client: OAuthClient = OAuthClient(), now: () -> Long = System::currentTimeMillis)