-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1d1f4d1 added Boolean typestates to statically track, at compile time, whether each endpoint has been set. In order to support scenarios such as OpenID Connect Discovery in which it's not known until runtime whether an Authorization Server has a particular endpoint, this change introduces type-based typestates instead of using Boolean const generics. There are now three possible typestates, each implementing the `EndpointState` trait: * `EndpointNotSet`: the corresponding endpoint has not been set and cannot be used. * `EndpointSet`: the corresponding endpoint has been set and is ready to be used. * `EndpointMaybeSet`: the corresponding endpoint may have been set and can be used via fallible methods that return `Result<_, ConfigurationError>`. This change also adds conditional setters (e.g., `Client::set_auth_uri_option()`) to set the `EndpointMaybeSet` typestate. BREAKING CHANGE: The Boolean typestate parameters introduced in 5.0.0-alpha.1 have been replaced with the types listed above.
- Loading branch information
Showing
13 changed files
with
1,325 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.