Skip to content

Release 0.3.0

Choose a tag to compare

@jim-verducci jim-verducci released this 04 Sep 23:32
· 11 commits to main since this release
11be607
  • The all new SDK auto-configuration functionality is now available. It supports both lazy and eager auto-configuration. Auto-configuration is enabled by default and will fetch missing configuration values from the Wristband SDK Configuration Endpoint when any auth method is first called. Manual configuration values take precedence over auto-configured values. Set auto_configure_enabled to False in the AuthConfig to disable.

  • The new async discover() method in WristbandAuth can be used to eager-load SDK configurations from the Wristband SDK Configuration Endpoint on server startup.

  • The login_state_secret config is no longer required. If not provided, it will default to using the client secret. For enhanced security, it is recommended to provide a value that is unique from the client secret. You can run openssl rand -base64 32 to create a secret from your CLI.

  • The LoginConfig class for the login() method now supports a return_url field. If a value is provided, then it takes precedence over the return_url request query parameter.

  • The LogoutConfig class for the logout() method now supports a state field. This is an optional value that allows you to preserve application state through the logout flow. If provided, it will be appended as a query parameter to the resolved logout URL. Maximum length of 512 characters. This is useful for tracking logout context, displaying post-logout messages, or handling different logout scenarios.