Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
20 KiB
@atproto/oauth-client
0.3.7
Patch Changes
- Updated dependencies [
2889c7699
,2889c7699
,5ece8c6ae
,2889c7699
,2889c7699
,5ece8c6ae
]:- @atproto/jwk@0.1.2
- @atproto-labs/fetch@0.2.0
- @atproto/oauth-types@0.2.2
- @atproto-labs/did-resolver@0.1.8
- @atproto-labs/identity-resolver@0.1.10
0.3.6
Patch Changes
- Updated dependencies [
72eba67af
]:- @atproto-labs/did-resolver@0.1.7
- @atproto-labs/identity-resolver@0.1.9
- @atproto/xrpc@0.6.6
0.3.5
Patch Changes
- Updated dependencies [
a200e5095
]:- @atproto-labs/handle-resolver@0.1.5
- @atproto-labs/identity-resolver@0.1.8
0.3.4
Patch Changes
- Updated dependencies []:
- @atproto/xrpc@0.6.5
0.3.3
Patch Changes
- Updated dependencies [
622654672
]:- @atproto-labs/fetch@0.1.2
- @atproto-labs/did-resolver@0.1.6
- @atproto-labs/identity-resolver@0.1.7
0.3.2
Patch Changes
-
#3066
5ddd51235
Thanks @matthieusieben! - Verify authorization_endpoint URL protocol -
#3066
5ddd51235
Thanks @matthieusieben! - Ensure that client-id is a web url -
#3066
5ddd51235
Thanks @matthieusieben! - Improve message of OAuthResolverError in case of metadata validation error -
Updated dependencies [
5ddd51235
,5ddd51235
,5ddd51235
]:- @atproto/oauth-types@0.2.1
0.3.1
Patch Changes
- Updated dependencies []:
- @atproto-labs/identity-resolver@0.1.6
- @atproto/xrpc@0.6.4
0.3.0
Minor Changes
- #2871
9d40ccbb6
Thanks @matthieusieben! - Use"auto"
instead ofundefined
to descibe the refresh mechanism to use in various methods.
Patch Changes
-
#2874
7f26b1765
Thanks @matthieusieben! - AddallowHttp
OAuthClient construction option to allow working with "http:" oauth providers (for development & testing purposes). -
#2871
9d40ccbb6
Thanks @matthieusieben! - Perform issuer validation before refreshing tokens. -
#2871
9d40ccbb6
Thanks @matthieusieben! - Ensure token response is properly typed according to the atproto OAuth spec -
#2871
9d40ccbb6
Thanks @matthieusieben! - Use fetch()'s "cache" option instead of headers to force caching behavior -
#2871
9d40ccbb6
Thanks @matthieusieben! - Do not use cache when checking sub authority -
#2871
9d40ccbb6
Thanks @matthieusieben! - Allow all oauth request parameters to be used as authorize() options -
Updated dependencies [
7f26b1765
,9d40ccbb6
,7f26b1765
,9d40ccbb6
,9d40ccbb6
,9d40ccbb6
,7f26b1765
,9d40ccbb6
,7f26b1765
]:- @atproto/oauth-types@0.2.0
- @atproto-labs/did-resolver@0.1.5
- @atproto-labs/handle-resolver@0.1.4
- @atproto/did@0.1.3
- @atproto-labs/identity-resolver@0.1.5
0.2.2
Patch Changes
-
#2755
ed325d863
Thanks @matthieusieben! - Improve client side validation of client metadata -
#2755
ed325d863
Thanks @matthieusieben! - Use scope from client metadata as default value -
Updated dependencies [
ed325d863
,a07b21151
,ed325d863
,ed325d863
,ed325d863
,ed325d863
,ed325d863
,ed325d863
,ed325d863
,ed325d863
,ed325d863
,a07b21151
,ed325d863
,a07b21151
,a07b21151
]:- @atproto/oauth-types@0.1.5
- @atproto/xrpc@0.6.3
- @atproto-labs/fetch@0.1.1
- @atproto-labs/did-resolver@0.1.4
- @atproto-labs/identity-resolver@0.1.4
0.2.1
Patch Changes
- Updated dependencies [
cb4abbb67
,cb4abbb67
,cb4abbb67
,98711a147
]:- @atproto/did@0.1.2
- @atproto/xrpc@0.6.2
- @atproto-labs/did-resolver@0.1.3
- @atproto-labs/handle-resolver@0.1.3
- @atproto-labs/identity-resolver@0.1.3
0.2.0
Minor Changes
-
#2714
d9ffa3c46
Thanks @matthieusieben! - TheOAuthClient
(and runtime specific sub-classes) no longer return @atproto/apiAgent
instances. Instead, they returnOAuthSession
instances that can be used to instantiate theAgent
class. -
#2734
dee817b6e
Thanks @matthieusieben! - Remove "nonce" from authorization request -
#2734
dee817b6e
Thanks @matthieusieben! - Mandate the use of "atproto" scope -
#2734
dee817b6e
Thanks @matthieusieben! - Remove "openid" compatibility. The reason is that although we were technically "openid" compatible, ATProto identifiers are distributed identifiers. When a client relies on OpenID to authenticate users, it will use the auth provider in combination with the identifier to uniquely identify the user. Since ATProto identifiers are meant to be able to move from one provider to the other, OpenID compatibility could break authentication after a user was migrated to a different provider.The way OpenID compliant clients would adapt to this particularity would typically be to remove the provider + identifier combination and use the identifier alone. While this is indeed the right way to handle ATProto identifiers, it requires more work to avoid impersonation. In particular, when obtaining a user identifier, the client must verify that the issuer of the identity token is indeed the server responsible for that user. This mechanism being not enforced by the OpenID standard, OpenID compatibility could lead to security issues. For this reason, we decided to remove OpenID compatibility from the OAuth provider.
Note that a trusted central authority could still offer OpenID compatibility by relying on ATProto's regular OAuth flow under the hood. This capability is out of the scope of this library.
-
#2714
d9ffa3c46
Thanks @matthieusieben! - Rename OAuthAgent into OAuthSession -
#2714
d9ffa3c46
Thanks @matthieusieben! - RenameOAuthSession
'srequest
method tofetchHandler
. The goal of this change is to allowOAuthSession
to be used in order to instantiateXrpcClient
by implementing theFetchHandlerObject
interface.
Patch Changes
-
#2714
d9ffa3c46
Thanks @matthieusieben! - AddgetTokenInfo()
method toOAuthSession
. -
#2734
dee817b6e
Thanks @matthieusieben! - Do not remove scopes not advertised in the AS's "scopes_supported" when building the authorization request. -
#2714
d9ffa3c46
Thanks @matthieusieben! - MakegetTokenSet()
method public inOAuthSession
. -
Updated dependencies [
d9ffa3c46
,dee817b6e
,dee817b6e
,dee817b6e
,d9ffa3c46
,d9ffa3c46
]:- @atproto/xrpc@0.6.1
- @atproto/oauth-types@0.1.4
0.1.7
Patch Changes
- Updated dependencies [
4ab248354
]:- @atproto/api@0.13.3
0.1.6
Patch Changes
0.1.5
Patch Changes
-
#2729
35a126429
Thanks @matthieusieben! - The non-standardintrospection_endpoint_auth_method
, andintrospection_endpoint_auth_signing_alg
client metadata properties were removed. The client'stoken_endpoint_auth_method
, andtoken_endpoint_auth_signing_alg
properties are now used as the only indication of how a client must authenticate at the introspection endpoint. -
#2729
35a126429
Thanks @matthieusieben! - The non-standardrevocation_endpoint_auth_method
, andrevocation_endpoint_auth_signing_alg
client metadata properties were removed. The client'stoken_endpoint_auth_method
, andtoken_endpoint_auth_signing_alg
properties are now used as the only indication of how a client must authenticate at the revocation endpoint. -
#2727
3ebcd4e61
Thanks @matthieusieben! - Remove "exp" from dpop proof -
#2729
35a126429
Thanks @matthieusieben! - The non-standardpushed_authorization_request_endpoint_auth_method
, andpushed_authorization_request_endpoint_auth_signing_alg
client metadata properties were removed. The client'stoken_endpoint_auth_method
, andtoken_endpoint_auth_signing_alg
properties are now used as the only indication of how a client must authenticate at the introspection endpoint. -
Updated dependencies [
35a126429
]:- @atproto/oauth-types@0.1.3
0.1.4
Patch Changes
- #2710
04112783d
Thanks @matthieusieben! - Add CustomEvent ponyfill for enviroments that don't provide it
0.1.3
Patch Changes
- Updated dependencies [
22af354a5
]:- @atproto/api@0.13.1
0.1.2
Patch Changes
-
#2483
b934b396b
Thanks @matthieusieben! - Misc fixes for confidential client usage -
#2483
b934b396b
Thanks @matthieusieben! - Better implement aptroto OAuth spec -
Updated dependencies [
b934b396b
,b934b396b
,b934b396b
,b934b396b
,b934b396b
,b934b396b
]:- @atproto/oauth-types@0.1.2
- @atproto-labs/handle-resolver@0.1.2
- @atproto/did@0.1.1
- @atproto/xrpc@0.6.0
- @atproto/api@0.13.0
- @atproto-labs/identity-resolver@0.1.2
- @atproto-labs/did-resolver@0.1.2
0.1.1
Patch Changes
-
#2633
acc9093d2
Thanks @matthieusieben! - Add event emitting capability to OAuthClient -
Updated dependencies [
acc9093d2
,acc9093d2
,acc9093d2
,acc9093d2
]:- @atproto/oauth-types@0.1.1
- @atproto/jwk@0.1.1
- @atproto-labs/identity-resolver@0.1.1
- @atproto-labs/handle-resolver@0.1.1
- @atproto-labs/did-resolver@0.1.1
- @atproto-labs/simple-store@0.1.1
- @atproto-labs/simple-store-memory@0.1.1
0.1.0
Minor Changes
- #2482
a8d6c1123
Thanks @matthieusieben! - Add OAuth provider capability & support for DPoP signed tokens
Patch Changes
- Updated dependencies [
a8d6c1123
]:- @atproto-labs/simple-store-memory@0.1.0
- @atproto-labs/identity-resolver@0.1.0
- @atproto-labs/handle-resolver@0.1.0
- @atproto-labs/did-resolver@0.1.0
- @atproto-labs/simple-store@0.1.0
- @atproto/oauth-types@0.1.0
- @atproto-labs/fetch@0.1.0
- @atproto/jwk@0.1.0
- @atproto/did@0.1.0