GitHubTokenExchangeReply#

class gafaelfawr.models.github_actions.GitHubTokenExchangeReply(*, access_token, issued_token_type='urn:ietf:params:oauth:token-type:access_token', token_type='Bearer', expires_in, scope)#

Bases: BaseModel

A reply to a successful GitHub Actions token exchange.

The fields are those of a successful token response in RFC 6749 and RFC 8693. The reply deliberately carries nothing Gafaelfawr-specific, such as the bot username or the matched project: a workflow does not need them, and the audit trail records both.

Parameters:
  • access_token (str)

  • issued_token_type (str, default: 'urn:ietf:params:oauth:token-type:access_token')

  • token_type (str, default: 'Bearer')

  • expires_in (int)

  • scope (str)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].