Skip to content

feat!: sociable, shaped after socialite - #1

Merged
arjendevos merged 1 commit into
mainfrom
compare-with-socialite-scope
Sep 17, 2026
Merged

arjendevos merged 1 commit into
mainfrom
compare-with-socialite-scope

Conversation

@arjendevos

Copy link
Copy Markdown
Contributor

The package is sociable, and its surface is Laravel Socialite's: Configure
once at boot with a key and a map of driver credentials, Driver(name) with
Scopes, SetScopes, RedirectURL, With, WithState and Stateless on the chain,
then Redirect and User in the handlers. Nine drivers are built in and picked
by name: google, github, gitlab, facebook, linkedin, bitbucket, slack,
twitch and x. Extend registers a provider under a name; OpenID and OAuth2
describe one without a type of its own, and a provider that is not OAuth at
all owns its Redirect and Callback. Fake swaps a driver for one that returns
a test user and records every redirect, for asserting on.

PKCE, the nonce, the verified ID token, the constant-time state check and
the encrypted handshake cookie are on and unmentioned. Everything x/oauth2
already has is used from there: Config, endpoints, the PKCE helpers, the
token and the client. Providers get an *http.Client that presents the token.

The package is sociable, and its surface is Laravel Socialite's: Configure
once at boot with a key and a map of driver credentials, Driver(name) with
Scopes, SetScopes, RedirectURL, With, WithState and Stateless on the chain,
then Redirect and User in the handlers. Nine drivers are built in and picked
by name: google, github, gitlab, facebook, linkedin, bitbucket, slack,
twitch and x. Extend registers a provider under a name; OpenID and OAuth2
describe one without a type of its own, and a provider that is not OAuth at
all owns its Redirect and Callback. Fake swaps a driver for one that returns
a test user and records every redirect, for asserting on.

PKCE, the nonce, the verified ID token, the constant-time state check and
the encrypted handshake cookie are on and unmentioned. Everything x/oauth2
already has is used from there: Config, endpoints, the PKCE helpers, the
token and the client. Providers get an *http.Client that presents the token.
@arjendevos
arjendevos merged commit 2ccba67 into main Sep 17, 2026
2 checks passed
@arjendevos
arjendevos deleted the compare-with-socialite-scope branch September 17, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant