This plugin now builds on the [Authentication and permissions](https://docs.datasette.io/en/stable/authentication.html) mechanism introduced in [Datasette 0.44](https://docs.datasette.io/en/stable/changelog.html#v0-44). This means it can be used in combination with other authentication plugins such as [datasette-auth-tokens](https://datasette.io/plugins/datasette-auth-tokens). #62
When a user signs in with GitHub, a signed [ds_actor cookie](https://docs.datasette.io/en/stable/authentication.html#the-ds-actor-cookie) is set with details of their GitHub profile. Fields from this dictionary can be used with Datasette [allow blocks](https://docs.datasette.io/en/stable/authentication.html#defining-permissions-with-allow-blocks) to control access to individual databases, tables and queries.
The new `load_orgs` and `load_teams` options can be used to check the user's membership of different organization and teams when they first sign in. These memberships will be encoded in the cookie and can be used to control access.
Other changes:
- The ASGI middleware version of this plugin has been split off into a separate [asgi-auth-github](https://github.com/simonw/asgi-auth-github) package. #63
- Error messages are now rendered using a `datasette_auth_github_error.html` template, which can be customized by including a template of the same name in a [custom templates directory](https://docs.datasette.io/en/stable/custom_templates.html#custom-templates). 36
- The `/-/auth-callback` path is now `/-/github-auth-callback` - you will need to update this in your GitHub OAuth application settings. 66