Minor Changes
-
#434
151220eThanks @mattzcarey! - A new authorization from a Client ID Metadata Document client no longer revokes the user's other grants from that client.revokeExistingGrantsnow defaults tofalsefor a client resolved from a Client ID Metadata Document, and staystruefor every registered client.A CIMD
client_idis shared by every installation and connection of the client, so an earlier grant can belong to another device or agent that is still in use. 0.10.3 limited the default revocation to grants from the same redirect URI, but a hosted client uses one https callback for all of its connections and a fixed loopback port is the same on every device. Signing in a second agent still revoked the first, whose next refresh failed withGrant not found.revokeExistingGrants: truenow means the same for every client: revoke the user's other grants for this client and resource. For a CIMD client that used to revoke only grants from the same redirect URI. To keep one grant per user and resource for a CIMD client, passtrue. To choose which grants to end, uselistUserGrants()andrevokeGrant().A URL
client_idstored in KV, withclientIdMetadataDocumentEnabledoff, is a registered client again: a new authorization replaces its earlier grants whatever their redirect URI.Grant keys no longer mirror
redirectUriinto KV metadata. The grant record still stores it, andlistUserGrants()still returns it.